Refactoring: always use std prefix for shared_ptr, unique_ptr and make_shared
Long time ago it's was used without prefix to make future switch from boost to std version easier. I discusses this with Ivan and decide to drop these using from Global.h now. This change wouldn't break anything because there was already code with prefix for each of three cases.
This commit is contained in:
1 parent
29a7934a99
commit
9fd1cff090
73 files changed
+257
-260
No files matched your search
@@ -28,7 +28,7 @@ extern "C" DLL_EXPORT void GetAiName(char* name)
|
||||
strcpy_s(name, strlen(g_cszAiName) + 1, g_cszAiName);
|
||||
}
|
||||
|
||||
extern "C" DLL_EXPORT void GetNewModule(shared_ptr<CScriptingModule> &out)
|
||||
extern "C" DLL_EXPORT void GetNewModule(std::shared_ptr<CScriptingModule> &out)
|
||||
{
|
||||
out = make_shared<ERMInterpreter>();
|
||||
out = std::make_shared<ERMInterpreter>();
|
||||
}
|
||||
Reference in new issue
Block a user