aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/cursorman.cpp5
-rw-r--r--graphics/cursorman.h5
2 files changed, 4 insertions, 6 deletions
diff --git a/graphics/cursorman.cpp b/graphics/cursorman.cpp
index 98b0de8a1d..fc9f985fae 100644
--- a/graphics/cursorman.cpp
+++ b/graphics/cursorman.cpp
@@ -31,11 +31,6 @@ DECLARE_SINGLETON(Graphics::CursorManager);
namespace Graphics {
-CursorManager::CursorManager() {
- _cursorStack.clear();
- _cursorPaletteStack.clear();
-}
-
bool CursorManager::isVisible() {
if (_cursorStack.empty())
return false;
diff --git a/graphics/cursorman.h b/graphics/cursorman.h
index b6afa10fa7..9eaca57a09 100644
--- a/graphics/cursorman.h
+++ b/graphics/cursorman.h
@@ -164,7 +164,10 @@ public:
private:
friend class Common::Singleton<SingletonBaseType>;
- CursorManager();
+ // Even though this is basically the default constructor we implement it
+ // ourselves, so it is private and thus there is no way to create this class
+ // except from the Singleton code.
+ CursorManager() {}
struct Cursor {
byte *_data;