diff options
author | Max Horn | 2010-10-13 15:41:34 +0000 |
---|---|---|
committer | Max Horn | 2010-10-13 15:41:34 +0000 |
commit | 9b4d41d2d2a165a95b3b9223f53196fe51c0b14f (patch) | |
tree | 155156c08186657d76bdd9235b60fdafc3633960 /engines/sword25/math/regionregistry.cpp | |
parent | 8f4f0d16fc4e5cd4803203f2aaeb0ddc99e57204 (diff) | |
download | scummvm-rg350-9b4d41d2d2a165a95b3b9223f53196fe51c0b14f.tar.gz scummvm-rg350-9b4d41d2d2a165a95b3b9223f53196fe51c0b14f.tar.bz2 scummvm-rg350-9b4d41d2d2a165a95b3b9223f53196fe51c0b14f.zip |
SWORD25: Convert object registries to singletons
svn-id: r53431
Diffstat (limited to 'engines/sword25/math/regionregistry.cpp')
-rw-r--r-- | engines/sword25/math/regionregistry.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/sword25/math/regionregistry.cpp b/engines/sword25/math/regionregistry.cpp index 1509ea9e5e..bcfb2cbc43 100644 --- a/engines/sword25/math/regionregistry.cpp +++ b/engines/sword25/math/regionregistry.cpp @@ -39,9 +39,12 @@ #include "sword25/math/regionregistry.h" #include "sword25/math/region.h" -namespace Sword25 { +// TODO: Destroy the singletons when closing the engine; +// even better, turn them into non-singleton members of +// e.g. Sword25Engine. +DECLARE_SINGLETON(Sword25::RegionRegistry) -Common::SharedPtr<RegionRegistry> RegionRegistry::_instancePtr; +namespace Sword25 { void RegionRegistry::logErrorLn(const char *message) const { BS_LOG_ERRORLN(message); |