diff options
author | Max Horn | 2004-03-29 19:15:23 +0000 |
---|---|---|
committer | Max Horn | 2004-03-29 19:15:23 +0000 |
commit | b6d911a6164d488f1d7fd978f132de11f8d150e5 (patch) | |
tree | 036a3210566dc5a90c95beb34f159ae02145d9f6 /common/config-manager.h | |
parent | 443c7cdb2573be44815167dbc80a9af88b554904 (diff) | |
download | scummvm-rg350-b6d911a6164d488f1d7fd978f132de11f8d150e5.tar.gz scummvm-rg350-b6d911a6164d488f1d7fd978f132de11f8d150e5.tar.bz2 scummvm-rg350-b6d911a6164d488f1d7fd978f132de11f8d150e5.zip |
Fixed a bad crash that occured when adding a new game target in the launcher
svn-id: r13428
Diffstat (limited to 'common/config-manager.h')
-rw-r--r-- | common/config-manager.h | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/common/config-manager.h b/common/config-manager.h index 3a54ccfb64..7f01ad01e9 100644 --- a/common/config-manager.h +++ b/common/config-manager.h @@ -54,26 +54,16 @@ public: private: StringMap _keyValueComments; String _domainComment; + public: + const String &get(const String &key) const; + + void setDomainComment(const String &comment); + const String &getDomainComment() const; - const String &get(const String &key) const { - Node *node = findNode(_root, key); - return node ? node->_value : String::emptyString; - } - - void setDomainComment(const String &comment) { - _domainComment = comment; - } - const String &getDomainComment() const { - return _domainComment; - } - - void setKVComment(const String &key, const String &comment) { - _keyValueComments[key] = comment; - } - const String &getKVComment(const String &key) const { - return _keyValueComments[key]; - } + void setKVComment(const String &key, const String &comment); + const String &getKVComment(const String &key) const; + bool hasKVComment(const String &key) const; }; typedef Map<String, Domain, IgnoreCaseComparator> DomainMap; |