summaryrefslogtreecommitdiff
path: root/src/properties.h
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-01-15 11:06:32 -0700
committerIra Rice <irarice@gmail.com>2009-01-15 11:06:32 -0700
commit10a9dbacd9334caede10f1b21d42cdf7e1efcd03 (patch)
treedef2baead68de5a9ccc842e25b3cdcfe9a638c9b /src/properties.h
parente7f4e78f76972ca3882b9d2763ae9cab31675d3a (diff)
downloadmana-10a9dbacd9334caede10f1b21d42cdf7e1efcd03.tar.gz
mana-10a9dbacd9334caede10f1b21d42cdf7e1efcd03.tar.bz2
mana-10a9dbacd9334caede10f1b21d42cdf7e1efcd03.tar.xz
mana-10a9dbacd9334caede10f1b21d42cdf7e1efcd03.zip
Style cleanups throughout most of the code. Splitting function type from
the function names should no longer be around. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/properties.h')
-rw-r--r--src/properties.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/properties.h b/src/properties.h
index 86fffea3..038acd91 100644
--- a/src/properties.h
+++ b/src/properties.h
@@ -46,8 +46,7 @@ class Properties
* @return the value of the given property or the given default when it
* doesn't exist.
*/
- const std::string&
- getProperty(const std::string &name, const std::string &def = "") const
+ const std::string& getProperty(const std::string &name, const std::string &def = "") const
{
PropertyMap::const_iterator i = mProperties.find(name);
return (i != mProperties.end()) ? i->second : def;
@@ -81,8 +80,7 @@ class Properties
* @return <code>true</code> when a property is defined,
* <code>false</code> otherwise.
*/
- bool
- hasProperty(const std::string &name) const
+ bool hasProperty(const std::string &name) const
{
return (mProperties.find(name) != mProperties.end());
}
@@ -93,8 +91,7 @@ class Properties
* @param name The name of the property.
* @param value The value of the property.
*/
- void
- setProperty(const std::string &name, const std::string &value)
+ void setProperty(const std::string &name, const std::string &value)
{
mProperties[name] = value;
}