From 1c4742e530271e10ae949cf7e85402bee867e298 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Fri, 24 Feb 2006 20:15:19 +0000 Subject: Another bunch of cosmetic cleanups, ie mostly typedefs... --- src/properties.h | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'src/properties.h') 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::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 properties; + typedef std::map PropertyMap; + PropertyMap mProperties; }; #endif -- cgit v1.2.3-60-g2f50