mirror of https://github.com/axmolengine/axmol.git
issue #2344: ScriptEngineManager::sharedManager --> ScriptEngineManager::getInstance, ScriptEngineManager::purgeSharedManager --> ScriptEngineManager::destroyInstance.
This commit is contained in:
parent
2228614748
commit
0164946779
|
@ -136,7 +136,7 @@ void ScriptEngineManager::removeScriptEngine(void)
|
|||
}
|
||||
}
|
||||
|
||||
ScriptEngineManager* ScriptEngineManager::sharedManager(void)
|
||||
ScriptEngineManager* ScriptEngineManager::getInstance()
|
||||
{
|
||||
if (!s_pSharedScriptEngineManager)
|
||||
{
|
||||
|
@ -145,7 +145,7 @@ ScriptEngineManager* ScriptEngineManager::sharedManager(void)
|
|||
return s_pSharedScriptEngineManager;
|
||||
}
|
||||
|
||||
void ScriptEngineManager::purgeSharedManager(void)
|
||||
void ScriptEngineManager::destroyInstance()
|
||||
{
|
||||
if (s_pSharedScriptEngineManager)
|
||||
{
|
||||
|
|
|
@ -350,8 +350,11 @@ public:
|
|||
void setScriptEngine(ScriptEngineProtocol *pScriptEngine);
|
||||
void removeScriptEngine(void);
|
||||
|
||||
static ScriptEngineManager* sharedManager(void);
|
||||
static void purgeSharedManager(void);
|
||||
static ScriptEngineManager* getInstance();
|
||||
static void destroyInstance();
|
||||
|
||||
CC_DEPRECATED_ATTRIBUTE static ScriptEngineManager* sharedManager() { return ScriptEngineManager::getInstance(); };
|
||||
CC_DEPRECATED_ATTRIBUTE static void purgeSharedManager() { ScriptEngineManager::destroyInstance(); };
|
||||
|
||||
private:
|
||||
ScriptEngineManager(void)
|
||||
|
|
Loading…
Reference in New Issue