diff options
author | Max Horn | 2010-10-13 15:41:00 +0000 |
---|---|---|
committer | Max Horn | 2010-10-13 15:41:00 +0000 |
commit | 8f4f0d16fc4e5cd4803203f2aaeb0ddc99e57204 (patch) | |
tree | b39380c6702b11d88ba2b95d7d0db9fc9afd62d9 /engines | |
parent | 17f9913a2419c558276a191be07a45ba8f8fc87f (diff) | |
download | scummvm-rg350-8f4f0d16fc4e5cd4803203f2aaeb0ddc99e57204.tar.gz scummvm-rg350-8f4f0d16fc4e5cd4803203f2aaeb0ddc99e57204.tar.bz2 scummvm-rg350-8f4f0d16fc4e5cd4803203f2aaeb0ddc99e57204.zip |
SWORD25: Renamed getInstance() -> instance()
svn-id: r53430
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sword25/gfx/animation.cpp | 6 | ||||
-rw-r--r-- | engines/sword25/gfx/animationtemplate.cpp | 14 | ||||
-rw-r--r-- | engines/sword25/gfx/animationtemplateregistry.h | 2 | ||||
-rw-r--r-- | engines/sword25/gfx/graphicengine_script.cpp | 10 | ||||
-rw-r--r-- | engines/sword25/gfx/renderobject.cpp | 6 | ||||
-rw-r--r-- | engines/sword25/gfx/renderobjectmanager.cpp | 4 | ||||
-rw-r--r-- | engines/sword25/gfx/renderobjectptr.h | 6 | ||||
-rw-r--r-- | engines/sword25/gfx/renderobjectregistry.h | 2 | ||||
-rw-r--r-- | engines/sword25/input/inputengine.cpp | 8 | ||||
-rw-r--r-- | engines/sword25/input/inputengine_script.cpp | 4 | ||||
-rw-r--r-- | engines/sword25/kernel/callbackregistry.h | 2 | ||||
-rw-r--r-- | engines/sword25/kernel/filesystemutil.h | 2 | ||||
-rw-r--r-- | engines/sword25/kernel/persistenceservice.cpp | 4 | ||||
-rw-r--r-- | engines/sword25/math/geometry_script.cpp | 10 | ||||
-rw-r--r-- | engines/sword25/math/region.cpp | 10 | ||||
-rw-r--r-- | engines/sword25/math/regionregistry.h | 2 |
16 files changed, 46 insertions, 46 deletions
diff --git a/engines/sword25/gfx/animation.cpp b/engines/sword25/gfx/animation.cpp index 7ec445acb8..ffa682e569 100644 --- a/engines/sword25/gfx/animation.cpp +++ b/engines/sword25/gfx/animation.cpp @@ -583,7 +583,7 @@ void Animation::persistCallbackVector(OutputPersistenceBlock &writer, const Comm // Alle Callbacks einzeln persistieren. Common::Array<ANIMATION_CALLBACK_DATA>::const_iterator it = vector.begin(); while (it != vector.end()) { - writer.write(CallbackRegistry::getInstance().resolveCallbackPointer((void (*)(int))it->Callback)); + writer.write(CallbackRegistry::instance().resolveCallbackPointer((void (*)(int))it->Callback)); writer.write(it->Data); ++it; @@ -604,7 +604,7 @@ void Animation::unpersistCallbackVector(InputPersistenceBlock &reader, Common::A Common::String callbackFunctionName; reader.read(callbackFunctionName); - callbackData.Callback = reinterpret_cast<ANIMATION_CALLBACK>(CallbackRegistry::getInstance().resolveCallbackFunction(callbackFunctionName)); + callbackData.Callback = reinterpret_cast<ANIMATION_CALLBACK>(CallbackRegistry::instance().resolveCallbackFunction(callbackFunctionName)); reader.read(callbackData.Data); @@ -705,7 +705,7 @@ AnimationDescription *Animation::getAnimationDescription() const { if (_animationResourcePtr) return _animationResourcePtr; else - return AnimationTemplateRegistry::getInstance().resolveHandle(_animationTemplateHandle); + return AnimationTemplateRegistry::instance().resolveHandle(_animationTemplateHandle); } } // End of namespace Sword25 diff --git a/engines/sword25/gfx/animationtemplate.cpp b/engines/sword25/gfx/animationtemplate.cpp index 2019d19565..c2dba550d7 100644 --- a/engines/sword25/gfx/animationtemplate.cpp +++ b/engines/sword25/gfx/animationtemplate.cpp @@ -49,7 +49,7 @@ uint AnimationTemplate::create(const Common::String &sourceAnimation) { AnimationTemplate *animationTemplatePtr = new AnimationTemplate(sourceAnimation); if (animationTemplatePtr->isValid()) { - return AnimationTemplateRegistry::getInstance().resolvePtr(animationTemplatePtr); + return AnimationTemplateRegistry::instance().resolvePtr(animationTemplatePtr); } else { delete animationTemplatePtr; return 0; @@ -60,7 +60,7 @@ uint AnimationTemplate::create(const AnimationTemplate &other) { AnimationTemplate *animationTemplatePtr = new AnimationTemplate(other); if (animationTemplatePtr->isValid()) { - return AnimationTemplateRegistry::getInstance().resolvePtr(animationTemplatePtr); + return AnimationTemplateRegistry::instance().resolvePtr(animationTemplatePtr); } else { delete animationTemplatePtr; return 0; @@ -71,7 +71,7 @@ uint AnimationTemplate::create(InputPersistenceBlock &reader, uint handle) { AnimationTemplate *animationTemplatePtr = new AnimationTemplate(reader, handle); if (animationTemplatePtr->isValid()) { - return AnimationTemplateRegistry::getInstance().resolvePtr(animationTemplatePtr); + return AnimationTemplateRegistry::instance().resolvePtr(animationTemplatePtr); } else { delete animationTemplatePtr; return 0; @@ -80,7 +80,7 @@ uint AnimationTemplate::create(InputPersistenceBlock &reader, uint handle) { AnimationTemplate::AnimationTemplate(const Common::String &sourceAnimation) { // Objekt registrieren. - AnimationTemplateRegistry::getInstance().registerObject(this); + AnimationTemplateRegistry::instance().registerObject(this); _valid = false; @@ -93,7 +93,7 @@ AnimationTemplate::AnimationTemplate(const Common::String &sourceAnimation) { AnimationTemplate::AnimationTemplate(const AnimationTemplate &other) : AnimationDescription() { // Objekt registrieren. - AnimationTemplateRegistry::getInstance().registerObject(this); + AnimationTemplateRegistry::instance().registerObject(this); _valid = false; @@ -118,7 +118,7 @@ AnimationTemplate::AnimationTemplate(const AnimationTemplate &other) : Animation AnimationTemplate::AnimationTemplate(InputPersistenceBlock &reader, uint handle) { // Objekt registrieren. - AnimationTemplateRegistry::getInstance().registerObject(this, handle); + AnimationTemplateRegistry::instance().registerObject(this, handle); // Objekt laden. _valid = unpersist(reader); @@ -141,7 +141,7 @@ AnimationTemplate::~AnimationTemplate() { } // Objekt deregistrieren - AnimationTemplateRegistry::getInstance().deregisterObject(this); + AnimationTemplateRegistry::instance().deregisterObject(this); } void AnimationTemplate::addFrame(int index) { diff --git a/engines/sword25/gfx/animationtemplateregistry.h b/engines/sword25/gfx/animationtemplateregistry.h index 256cbab8cd..9c7140e585 100644 --- a/engines/sword25/gfx/animationtemplateregistry.h +++ b/engines/sword25/gfx/animationtemplateregistry.h @@ -47,7 +47,7 @@ class AnimationTemplate; class AnimationTemplateRegistry : public ObjectRegistry<AnimationTemplate>, public Persistable { public: - static AnimationTemplateRegistry &getInstance() { + static AnimationTemplateRegistry &instance() { if (!_instancePtr.get()) _instancePtr.reset(new AnimationTemplateRegistry); return *_instancePtr.get(); diff --git a/engines/sword25/gfx/graphicengine_script.cpp b/engines/sword25/gfx/graphicengine_script.cpp index d443023436..0f85f08d5b 100644 --- a/engines/sword25/gfx/graphicengine_script.cpp +++ b/engines/sword25/gfx/graphicengine_script.cpp @@ -88,9 +88,9 @@ Common::ScopedPtr<ActionCallback> ActionCallbackPtr; struct CallbackfunctionRegisterer { CallbackfunctionRegisterer() { - CallbackRegistry::getInstance().registerCallbackFunction("LuaLoopPointCB", (void ( *)(int))AnimationLoopPointCallback); - CallbackRegistry::getInstance().registerCallbackFunction("LuaActionCB", (void ( *)(int))AnimationActionCallback); - CallbackRegistry::getInstance().registerCallbackFunction("LuaDeleteCB", (void ( *)(int))AnimationDeleteCallback); + CallbackRegistry::instance().registerCallbackFunction("LuaLoopPointCB", (void ( *)(int))AnimationLoopPointCallback); + CallbackRegistry::instance().registerCallbackFunction("LuaActionCB", (void ( *)(int))AnimationActionCallback); + CallbackRegistry::instance().registerCallbackFunction("LuaDeleteCB", (void ( *)(int))AnimationDeleteCallback); } }; static CallbackfunctionRegisterer Instance; @@ -144,7 +144,7 @@ static AnimationTemplate *CheckAnimationTemplate(lua_State *L, int idx = 1) { // Der erste Parameter muss vom Typ userdata sein und die Metatable der Klasse Gfx.AnimationTemplate uint AnimationTemplateHandle; if ((AnimationTemplateHandle = *reinterpret_cast<uint *>(my_checkudata(L, idx, ANIMATION_TEMPLATE_CLASS_NAME))) != 0) { - AnimationTemplate *AnimationTemplatePtr = AnimationTemplateRegistry::getInstance().resolveHandle(AnimationTemplateHandle); + AnimationTemplate *AnimationTemplatePtr = AnimationTemplateRegistry::instance().resolveHandle(AnimationTemplateHandle); if (!AnimationTemplatePtr) luaL_error(L, "The animation template with the handle %d does no longer exist.", AnimationTemplateHandle); return AnimationTemplatePtr; @@ -159,7 +159,7 @@ static AnimationTemplate *CheckAnimationTemplate(lua_State *L, int idx = 1) { static int NewAnimationTemplate(lua_State *L) { uint AnimationTemplateHandle = AnimationTemplate::create(luaL_checkstring(L, 1)); - AnimationTemplate *AnimationTemplatePtr = AnimationTemplateRegistry::getInstance().resolveHandle(AnimationTemplateHandle); + AnimationTemplate *AnimationTemplatePtr = AnimationTemplateRegistry::instance().resolveHandle(AnimationTemplateHandle); if (AnimationTemplatePtr && AnimationTemplatePtr->isValid()) { NewUintUserData(L, AnimationTemplateHandle); //luaL_getmetatable(L, ANIMATION_TEMPLATE_CLASS_NAME); diff --git a/engines/sword25/gfx/renderobject.cpp b/engines/sword25/gfx/renderobject.cpp index 5de6dde79e..ae8fc8cba1 100644 --- a/engines/sword25/gfx/renderobject.cpp +++ b/engines/sword25/gfx/renderobject.cpp @@ -76,9 +76,9 @@ RenderObject::RenderObject(RenderObjectPtr<RenderObject> parentPtr, TYPES type, // Renderobject registrieren, abhängig vom Handle-Parameter entweder mit beliebigem oder vorgegebenen Handle. if (handle == 0) - _handle = RenderObjectRegistry::getInstance().registerObject(this); + _handle = RenderObjectRegistry::instance().registerObject(this); else - _handle = RenderObjectRegistry::getInstance().registerObject(this, handle); + _handle = RenderObjectRegistry::instance().registerObject(this, handle); if (_handle == 0) return; @@ -110,7 +110,7 @@ RenderObject::~RenderObject() { deleteAllChildren(); // Objekt deregistrieren. - RenderObjectRegistry::getInstance().deregisterObject(this); + RenderObjectRegistry::instance().deregisterObject(this); } // Rendern diff --git a/engines/sword25/gfx/renderobjectmanager.cpp b/engines/sword25/gfx/renderobjectmanager.cpp index ab4e606270..3e142c627e 100644 --- a/engines/sword25/gfx/renderobjectmanager.cpp +++ b/engines/sword25/gfx/renderobjectmanager.cpp @@ -113,7 +113,7 @@ bool RenderObjectManager::persist(OutputPersistenceBlock &writer) { } // Alle BS_AnimationTemplates persistieren. - result &= AnimationTemplateRegistry::getInstance().persist(writer); + result &= AnimationTemplateRegistry::instance().persist(writer); return result; } @@ -143,7 +143,7 @@ bool RenderObjectManager::unpersist(InputPersistenceBlock &reader) { } // Alle BS_AnimationTemplates wieder herstellen. - result &= AnimationTemplateRegistry::getInstance().unpersist(reader); + result &= AnimationTemplateRegistry::instance().unpersist(reader); return result; } diff --git a/engines/sword25/gfx/renderobjectptr.h b/engines/sword25/gfx/renderobjectptr.h index 894ba877d2..c22c6e83e7 100644 --- a/engines/sword25/gfx/renderobjectptr.h +++ b/engines/sword25/gfx/renderobjectptr.h @@ -54,7 +54,7 @@ public: RenderObjectPtr(uint handle) : _handle(handle) {} T *operator->() const { - return static_cast<T *>(RenderObjectRegistry::getInstance().resolveHandle(_handle)); + return static_cast<T *>(RenderObjectRegistry::instance().resolveHandle(_handle)); } bool operator==(const RenderObjectPtr<T> & other) { @@ -62,11 +62,11 @@ public: } bool isValid() const { - return RenderObjectRegistry::getInstance().resolveHandle(_handle) != 0; + return RenderObjectRegistry::instance().resolveHandle(_handle) != 0; } void erase() { - delete static_cast<T *>(RenderObjectRegistry::getInstance().resolveHandle(_handle)); + delete static_cast<T *>(RenderObjectRegistry::instance().resolveHandle(_handle)); _handle = 0; } diff --git a/engines/sword25/gfx/renderobjectregistry.h b/engines/sword25/gfx/renderobjectregistry.h index b546ee56e1..416da27f08 100644 --- a/engines/sword25/gfx/renderobjectregistry.h +++ b/engines/sword25/gfx/renderobjectregistry.h @@ -58,7 +58,7 @@ class RenderObject; class RenderObjectRegistry : public ObjectRegistry<RenderObject> { public: - static RenderObjectRegistry &getInstance() { + static RenderObjectRegistry &instance() { if (!_instancePtr.get()) _instancePtr.reset(new RenderObjectRegistry); return *_instancePtr.get(); diff --git a/engines/sword25/input/inputengine.cpp b/engines/sword25/input/inputengine.cpp index a57af23e6b..9936a20127 100644 --- a/engines/sword25/input/inputengine.cpp +++ b/engines/sword25/input/inputengine.cpp @@ -339,7 +339,7 @@ bool InputEngine::persist(OutputPersistenceBlock &writer) { { Common::List<CommandCallback>::const_iterator It = m_CommandCallbacks.begin(); while (It != m_CommandCallbacks.end()) { - writer.write(CallbackRegistry::getInstance().resolveCallbackPointer(*It)); + writer.write(CallbackRegistry::instance().resolveCallbackPointer(*It)); ++It; } } @@ -351,7 +351,7 @@ bool InputEngine::persist(OutputPersistenceBlock &writer) { { Common::List<CharacterCallback>::const_iterator It = m_CharacterCallbacks.begin(); while (It != m_CharacterCallbacks.end()) { - writer.write(CallbackRegistry::getInstance().resolveCallbackPointer(*It)); + writer.write(CallbackRegistry::instance().resolveCallbackPointer(*It)); ++It; } } @@ -375,7 +375,7 @@ bool InputEngine::unpersist(InputPersistenceBlock &reader) { reader.read(CallbackFunctionName); m_CommandCallbacks.push_back(reinterpret_cast<CommandCallback>( - CallbackRegistry::getInstance().resolveCallbackFunction(CallbackFunctionName))); + CallbackRegistry::instance().resolveCallbackFunction(CallbackFunctionName))); } // Character-Callbackliste leeren. @@ -390,7 +390,7 @@ bool InputEngine::unpersist(InputPersistenceBlock &reader) { Common::String CallbackFunctionName; reader.read(CallbackFunctionName); - m_CharacterCallbacks.push_back(reinterpret_cast<CharacterCallback>(CallbackRegistry::getInstance().resolveCallbackFunction(CallbackFunctionName))); + m_CharacterCallbacks.push_back(reinterpret_cast<CharacterCallback>(CallbackRegistry::instance().resolveCallbackFunction(CallbackFunctionName))); } return reader.isGood(); diff --git a/engines/sword25/input/inputengine_script.cpp b/engines/sword25/input/inputengine_script.cpp index 38ecc3cf56..bb48a7ade9 100644 --- a/engines/sword25/input/inputengine_script.cpp +++ b/engines/sword25/input/inputengine_script.cpp @@ -97,8 +97,8 @@ Common::SharedPtr<CommandCallbackClass> CommandCallbackPtr; struct CallbackfunctionRegisterer { CallbackfunctionRegisterer() { - CallbackRegistry::getInstance().registerCallbackFunction("LuaCommandCB", TheCommandCallback); - CallbackRegistry::getInstance().registerCallbackFunction("LuaCharacterCB", TheCharacterCallback); + CallbackRegistry::instance().registerCallbackFunction("LuaCommandCB", TheCommandCallback); + CallbackRegistry::instance().registerCallbackFunction("LuaCharacterCB", TheCharacterCallback); } }; static CallbackfunctionRegisterer Instance; diff --git a/engines/sword25/kernel/callbackregistry.h b/engines/sword25/kernel/callbackregistry.h index ddf5608446..a309dcee6f 100644 --- a/engines/sword25/kernel/callbackregistry.h +++ b/engines/sword25/kernel/callbackregistry.h @@ -55,7 +55,7 @@ typedef void (*CallbackPtr)(int command); class CallbackRegistry { public: - static CallbackRegistry &getInstance() { + static CallbackRegistry &instance() { static CallbackRegistry _instance; return _instance; } diff --git a/engines/sword25/kernel/filesystemutil.h b/engines/sword25/kernel/filesystemutil.h index 122d3f021c..13762a29ee 100644 --- a/engines/sword25/kernel/filesystemutil.h +++ b/engines/sword25/kernel/filesystemutil.h @@ -38,7 +38,7 @@ * operations that do not have equivalents in the C/C++ libraries. * * Each supported platform must implement this interface, and the method - * BS_FileSystemUtil Singleton::getInstance() + * BS_FileSystemUtil Singleton::instance() */ #ifndef SWORD25_FILESYSTEMUTIL_H diff --git a/engines/sword25/kernel/persistenceservice.cpp b/engines/sword25/kernel/persistenceservice.cpp index 871bc37e2a..7d03497128 100644 --- a/engines/sword25/kernel/persistenceservice.cpp +++ b/engines/sword25/kernel/persistenceservice.cpp @@ -326,7 +326,7 @@ bool PersistenceService::SaveGame(uint SlotID, const Common::String &ScreenshotF OutputPersistenceBlock Writer; bool Success = true; Success &= Kernel::GetInstance()->GetScript()->persist(Writer); - Success &= RegionRegistry::getInstance().persist(Writer); + Success &= RegionRegistry::instance().persist(Writer); Success &= Kernel::GetInstance()->GetGfx()->persist(Writer); Success &= Kernel::GetInstance()->GetSfx()->persist(Writer); Success &= Kernel::GetInstance()->GetInput()->persist(Writer); @@ -445,7 +445,7 @@ bool PersistenceService::LoadGame(uint SlotID) { bool Success = true; Success &= Kernel::GetInstance()->GetScript()->unpersist(Reader); // Muss unbedingt nach Script passieren. Da sonst die bereits wiederhergestellten Regions per Garbage-Collection gekillt werden. - Success &= RegionRegistry::getInstance().unpersist(Reader); + Success &= RegionRegistry::instance().unpersist(Reader); Success &= Kernel::GetInstance()->GetGfx()->unpersist(Reader); Success &= Kernel::GetInstance()->GetSfx()->unpersist(Reader); Success &= Kernel::GetInstance()->GetInput()->unpersist(Reader); diff --git a/engines/sword25/math/geometry_script.cpp b/engines/sword25/math/geometry_script.cpp index dac766927b..b96fe90e66 100644 --- a/engines/sword25/math/geometry_script.cpp +++ b/engines/sword25/math/geometry_script.cpp @@ -205,7 +205,7 @@ static uint tableRegionToRegion(lua_State *L, const char *className) { case LUA_TNUMBER: { Polygon polygon; tablePolygonToPolygon(L, polygon); - RegionRegistry::getInstance().resolveHandle(regionHandle)->init(polygon); + RegionRegistry::instance().resolveHandle(regionHandle)->init(polygon); } break; @@ -217,7 +217,7 @@ static uint tableRegionToRegion(lua_State *L, const char *className) { int polygonCount = luaL_getn(L, -1); if (polygonCount == 1) - RegionRegistry::getInstance().resolveHandle(regionHandle)->init(polygon); + RegionRegistry::instance().resolveHandle(regionHandle)->init(polygon); else { Common::Array<Polygon> holes; holes.reserve(polygonCount - 1); @@ -230,7 +230,7 @@ static uint tableRegionToRegion(lua_State *L, const char *className) { } BS_ASSERT((int)holes.size() == polygonCount - 1); - RegionRegistry::getInstance().resolveHandle(regionHandle)->init(polygon, &holes); + RegionRegistry::instance().resolveHandle(regionHandle)->init(polygon, &holes); } } break; @@ -283,7 +283,7 @@ static Region *checkRegion(lua_State *L) { uint *regionHandlePtr; if ((regionHandlePtr = reinterpret_cast<uint *>(my_checkudata(L, 1, REGION_CLASS_NAME))) != 0 || (regionHandlePtr = reinterpret_cast<uint *>(my_checkudata(L, 1, WALKREGION_CLASS_NAME))) != 0) { - return RegionRegistry::getInstance().resolveHandle(*regionHandlePtr); + return RegionRegistry::instance().resolveHandle(*regionHandlePtr); } else { luaL_argcheck(L, 0, 1, "'" REGION_CLASS_NAME "' expected"); } @@ -436,7 +436,7 @@ static WalkRegion *checkWalkRegion(lua_State *L) { // The first parameter must be of type 'userdate', and the Metatable class Geo.WalkRegion uint regionHandle; if ((regionHandle = *reinterpret_cast<uint *>(my_checkudata(L, 1, WALKREGION_CLASS_NAME))) != 0) { - return reinterpret_cast<WalkRegion *>(RegionRegistry::getInstance().resolveHandle(regionHandle)); + return reinterpret_cast<WalkRegion *>(RegionRegistry::instance().resolveHandle(regionHandle)); } else { luaL_argcheck(L, 0, 1, "'" WALKREGION_CLASS_NAME "' expected"); } diff --git a/engines/sword25/math/region.cpp b/engines/sword25/math/region.cpp index 454f90a8ba..ae9b76d077 100644 --- a/engines/sword25/math/region.cpp +++ b/engines/sword25/math/region.cpp @@ -44,11 +44,11 @@ namespace Sword25 { Region::Region() : _valid(false), _type(RT_REGION) { - RegionRegistry::getInstance().registerObject(this); + RegionRegistry::instance().registerObject(this); } Region::Region(InputPersistenceBlock &reader, uint handle) : _valid(false), _type(RT_REGION) { - RegionRegistry::getInstance().registerObject(this, handle); + RegionRegistry::instance().registerObject(this, handle); unpersist(reader); } @@ -67,7 +67,7 @@ uint Region::create(REGION_TYPE type) { BS_ASSERT(true); } - return RegionRegistry::getInstance().resolvePtr(regionPtr); + return RegionRegistry::instance().resolvePtr(regionPtr); } uint Region::create(InputPersistenceBlock &reader, uint handle) { @@ -85,11 +85,11 @@ uint Region::create(InputPersistenceBlock &reader, uint handle) { BS_ASSERT(false); } - return RegionRegistry::getInstance().resolvePtr(regionPtr); + return RegionRegistry::instance().resolvePtr(regionPtr); } Region::~Region() { - RegionRegistry::getInstance().deregisterObject(this); + RegionRegistry::instance().deregisterObject(this); } bool Region::init(const Polygon &contour, const Common::Array<Polygon> *pHoles) { diff --git a/engines/sword25/math/regionregistry.h b/engines/sword25/math/regionregistry.h index bbe2fb8370..78c2c08fc3 100644 --- a/engines/sword25/math/regionregistry.h +++ b/engines/sword25/math/regionregistry.h @@ -46,7 +46,7 @@ class Region; class RegionRegistry : public ObjectRegistry<Region>, public Persistable { public: - static RegionRegistry &getInstance() { + static RegionRegistry &instance() { if (!_instancePtr.get()) _instancePtr = Common::SharedPtr<RegionRegistry>(new RegionRegistry()); return *_instancePtr.get(); } |