diff options
author | Max Horn | 2005-01-01 19:19:06 +0000 |
---|---|---|
committer | Max Horn | 2005-01-01 19:19:06 +0000 |
commit | 74bf578bda4c9adcc70ce4cda7d4617a9b95267c (patch) | |
tree | b46f1664b5ffd69ebc5623f83444fd7f5de724e2 /common/config-manager.h | |
parent | c418282ec724d01e37b13f7372aa2d6b48f6cbe2 (diff) | |
download | scummvm-rg350-74bf578bda4c9adcc70ce4cda7d4617a9b95267c.tar.gz scummvm-rg350-74bf578bda4c9adcc70ce4cda7d4617a9b95267c.tar.bz2 scummvm-rg350-74bf578bda4c9adcc70ce4cda7d4617a9b95267c.zip |
Changed the singleton code to allow for custom object factories; this allowed me to change OSystem to use the singleton base class, too
svn-id: r16404
Diffstat (limited to 'common/config-manager.h')
-rw-r--r-- | common/config-manager.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/common/config-manager.h b/common/config-manager.h index fd51d6ac37..45d7912b64 100644 --- a/common/config-manager.h +++ b/common/config-manager.h @@ -38,9 +38,6 @@ namespace Common { * @todo Implement the callback based notification system (outline below) * which sends out notifications to interested parties whenever the value * of some specific (or any) configuration key changes. - * @todo Preserve the order of the entries in the config file. Maybe even add - * an API to query/modify that order, which could be used by the launcher - * to allow arranging the game targets. */ class ConfigManager : public Singleton<ConfigManager> { struct IgnoreCaseComparator { @@ -117,7 +114,7 @@ public: */ private: - friend class Singleton<ConfigManager>; + friend SingletonBaseType *makeInstance<>(); ConfigManager(); void loadFile(const String &filename); |