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. --- base/plugins.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'base') diff --git a/base/plugins.cpp b/base/plugins.cpp index 39aaf2f73e..2414102f59 100644 --- a/base/plugins.cpp +++ b/base/plugins.cpp @@ -446,10 +446,6 @@ void PluginManager::addToPluginsInMemList(Plugin *plugin) { #include "engines/metaengine.h" -namespace Common { -DECLARE_SINGLETON(EngineManager); -} - /** * This function works for both cached and uncached PluginManagers. * For the cached version, most of the logic here will short circuit. @@ -539,10 +535,6 @@ const EnginePlugin::List &EngineManager::getPlugins() const { #include "audio/musicplugin.h" -namespace Common { -DECLARE_SINGLETON(MusicManager); -} - const MusicPlugin::List &MusicManager::getPlugins() const { return (const MusicPlugin::List &)PluginManager::instance().getPlugins(PLUGIN_TYPE_MUSIC); } -- cgit v1.2.3