From eefa72afa1978a9dea10f5b1833fcc8f58a3468e Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Mon, 3 Jul 2017 18:59:12 +0100 Subject: COMMON: Change way the Singleton instances are instantiated This fixes tons of warnings with clang from a recent xcode version on macOS (and possibly other systems) complaining that an instantiation of _singleton is required but no definition is available. --- gui/EventRecorder.cpp | 4 ---- gui/gui-manager.cpp | 4 ---- 2 files changed, 8 deletions(-) (limited to 'gui') diff --git a/gui/EventRecorder.cpp b/gui/EventRecorder.cpp index 3f91cfa259..ccf051f6d8 100644 --- a/gui/EventRecorder.cpp +++ b/gui/EventRecorder.cpp @@ -25,10 +25,6 @@ #ifdef ENABLE_EVENTRECORDER -namespace Common { -DECLARE_SINGLETON(GUI::EventRecorder); -} - #include "common/debug-channels.h" #include "backends/timer/sdl/sdl-timer.h" #include "backends/mixer/sdl/sdl-mixer.h" diff --git a/gui/gui-manager.cpp b/gui/gui-manager.cpp index 76f557711d..12a0320a8c 100644 --- a/gui/gui-manager.cpp +++ b/gui/gui-manager.cpp @@ -41,10 +41,6 @@ #include "graphics/cursorman.h" -namespace Common { -DECLARE_SINGLETON(GUI::GuiManager); -} - namespace GUI { enum { -- cgit v1.2.3