diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-02-24 20:15:19 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-02-24 20:15:19 +0000 |
commit | 1c4742e530271e10ae949cf7e85402bee867e298 (patch) | |
tree | f95927614c4f9a84a507c9425b882f945be6d09f /src/properties.h | |
parent | 05a12d5568111fa13759026442ed358605bf9a28 (diff) | |
download | mana-client-1c4742e530271e10ae949cf7e85402bee867e298.tar.gz mana-client-1c4742e530271e10ae949cf7e85402bee867e298.tar.bz2 mana-client-1c4742e530271e10ae949cf7e85402bee867e298.tar.xz mana-client-1c4742e530271e10ae949cf7e85402bee867e298.zip |
Another bunch of cosmetic cleanups, ie mostly typedefs...
Diffstat (limited to 'src/properties.h')
-rw-r--r-- | src/properties.h | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/src/properties.h b/src/properties.h index ccf8cd00..92690cd3 100644 --- a/src/properties.h +++ b/src/properties.h @@ -46,17 +46,9 @@ class Properties getProperty(const std::string &name) { const static std::string undefined = ""; - std::map<std::string, std::string>::const_iterator i = - properties.find(name); + PropertyMap::const_iterator i = mProperties.find(name); - if (i != properties.end()) - { - return (*i).second; - } - else - { - return undefined; - } + return (i != mProperties.end()) ? i->second : undefined; } /** @@ -65,7 +57,7 @@ class Properties bool hasProperty(const std::string &name) { - return (properties.find(name) != properties.end()); + return (mProperties.find(name) != mProperties.end()); } /** @@ -74,11 +66,12 @@ class Properties void setProperty(const std::string &name, const std::string &value) { - properties[name] = value; + mProperties[name] = value; } private: - std::map<std::string, std::string> properties; + typedef std::map<std::string, std::string> PropertyMap; + PropertyMap mProperties; }; #endif |