From 940b2a20f1cd490afb6e541a3cd26f0d3bdd1687 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 10 Jul 2017 21:17:41 +0200 Subject: Revert "COMMON: Change way the Singleton instances are instantiated" This reverts commit eefa72afa1978a9dea10f5b1833fcc8f58a3468e. With this patch ConfigManager is broken. --- base/plugins.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'base/plugins.cpp') diff --git a/base/plugins.cpp b/base/plugins.cpp index 2414102f59..39aaf2f73e 100644 --- a/base/plugins.cpp +++ b/base/plugins.cpp @@ -446,6 +446,10 @@ 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. @@ -535,6 +539,10 @@ 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