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/gfx/renderobjectregistry.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/gfx/renderobjectregistry.cpp')
-rw-r--r-- | engines/sword25/gfx/renderobjectregistry.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/sword25/gfx/renderobjectregistry.cpp b/engines/sword25/gfx/renderobjectregistry.cpp index edfdbd23a8..347d5fb7cd 100644 --- a/engines/sword25/gfx/renderobjectregistry.cpp +++ b/engines/sword25/gfx/renderobjectregistry.cpp @@ -34,14 +34,15 @@ #include "sword25/gfx/renderobjectregistry.h" -#include "common/ptr.h" +// TODO: Destroy the singletons when closing the engine; +// even better, turn them into non-singleton members of +// e.g. Sword25Engine. +DECLARE_SINGLETON(Sword25::RenderObjectRegistry) namespace Sword25 { #define BS_LOG_PREFIX "RENDEROBJECTREGISTRY" -Common::ScopedPtr<RenderObjectRegistry> RenderObjectRegistry::_instancePtr; - void RenderObjectRegistry::logErrorLn(const char *message) const { BS_LOG_ERRORLN(message); } |