diff options
author | Max Horn | 2010-11-16 08:23:13 +0000 |
---|---|---|
committer | Max Horn | 2010-11-16 08:23:13 +0000 |
commit | abe1959d36816b6c0703c1c3802764818585d0b6 (patch) | |
tree | 01fd7fe8a0f5bbad700d052c78f954862a11dc5f /backends/platform | |
parent | 5af8a76b489c315f4389f888489030bdcff52ae3 (diff) | |
download | scummvm-rg350-abe1959d36816b6c0703c1c3802764818585d0b6.tar.gz scummvm-rg350-abe1959d36816b6c0703c1c3802764818585d0b6.tar.bz2 scummvm-rg350-abe1959d36816b6c0703c1c3802764818585d0b6.zip |
COMMON: Simplify DECLARE_SINGLETON macro
This makes it possible to write
DECLARE_SINGLETON(foo);
instead of
DECLARE_SINGLETON(foo)
without causing a warning about an extra semicolon.
The extra semicolon helps some editors at parsing the C++ code.
svn-id: r54258
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/psp/display_manager.cpp | 2 | ||||
-rw-r--r-- | backends/platform/psp/powerman.cpp | 2 | ||||
-rw-r--r-- | backends/platform/psp/rtc.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/backends/platform/psp/display_manager.cpp b/backends/platform/psp/display_manager.cpp index 2c94882a63..6d2c92c474 100644 --- a/backends/platform/psp/display_manager.cpp +++ b/backends/platform/psp/display_manager.cpp @@ -63,7 +63,7 @@ const OSystem::GraphicsMode DisplayManager::_supportedModes[] = { // Class VramAllocator ----------------------------------- -DECLARE_SINGLETON(VramAllocator) +DECLARE_SINGLETON(VramAllocator); //#define __PSP_DEBUG_FUNCS__ /* For debugging the stack */ //#define __PSP_DEBUG_PRINT__ diff --git a/backends/platform/psp/powerman.cpp b/backends/platform/psp/powerman.cpp index 869d9b3023..f00a2c0fde 100644 --- a/backends/platform/psp/powerman.cpp +++ b/backends/platform/psp/powerman.cpp @@ -33,7 +33,7 @@ //#define __PSP_DEBUG_PRINT__ #include "backends/platform/psp/trace.h" -DECLARE_SINGLETON(PowerManager) +DECLARE_SINGLETON(PowerManager); // Function to debug the Power Manager (we have no output to screen) inline void PowerManager::debugPM() { diff --git a/backends/platform/psp/rtc.cpp b/backends/platform/psp/rtc.cpp index f26e5770a6..976a5aa3ec 100644 --- a/backends/platform/psp/rtc.cpp +++ b/backends/platform/psp/rtc.cpp @@ -37,7 +37,7 @@ // Class PspRtc --------------------------------------------------------------- -DECLARE_SINGLETON(PspRtc) +DECLARE_SINGLETON(PspRtc); void PspRtc::init() { // init our starting ticks uint32 ticks[2]; |