Bytecode: port some constructors to pass-by-value using C++11 move semantics
Performed using modernize-pass-by-value from clang-tidy. https://clang.llvm.org/extra/clang-tidy/checks/modernize-pass-by-value.htmltime-shift
parent
7840d1396e
commit
63e922f637
|
@ -30,6 +30,7 @@
|
||||||
|
|
||||||
#define _USE_MATH_DEFINES
|
#define _USE_MATH_DEFINES
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
#include <utility>
|
||||||
#ifndef M_PI
|
#ifndef M_PI
|
||||||
# define M_PI (3.14159265358979323846)
|
# define M_PI (3.14159265358979323846)
|
||||||
#endif
|
#endif
|
||||||
|
@ -165,7 +166,7 @@ public:
|
||||||
FreeLibrary(hinstLib);
|
FreeLibrary(hinstLib);
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
GeneralExceptionHandling(string ErrorMsg_arg) : ErrorMsg(ErrorMsg_arg)
|
GeneralExceptionHandling(string ErrorMsg_arg) : ErrorMsg{move(ErrorMsg_arg)}
|
||||||
{
|
{
|
||||||
};
|
};
|
||||||
inline string
|
inline string
|
||||||
|
|
Loading…
Reference in New Issue