mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
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:
@ -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