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.html
time-shift
Sébastien Villemot 2021-02-01 12:34:34 +01:00
parent 7840d1396e
commit 63e922f637
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@
#define _USE_MATH_DEFINES
#include <cmath>
#include <utility>
#ifndef M_PI
# define M_PI (3.14159265358979323846)
#endif
@ -165,7 +166,7 @@ public:
FreeLibrary(hinstLib);
};
#endif
GeneralExceptionHandling(string ErrorMsg_arg) : ErrorMsg(ErrorMsg_arg)
GeneralExceptionHandling(string ErrorMsg_arg) : ErrorMsg{move(ErrorMsg_arg)}
{
};
inline string