summaryrefslogtreecommitdiff
path: root/src/properties.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-30 01:19:46 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-30 13:11:34 +0300
commit6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 (patch)
tree4a0a5fd220828b92ef96446fe38dbe67ff446c6c /src/properties.h
parent2a70a50c785ce639b76141a3a6887836d22fe12c (diff)
downloadplus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.gz
plus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.bz2
plus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.xz
plus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.zip
Add unused warnings to some files.
Diffstat (limited to 'src/properties.h')
-rw-r--r--src/properties.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/properties.h b/src/properties.h
index 63dcd9afc..82664c600 100644
--- a/src/properties.h
+++ b/src/properties.h
@@ -48,7 +48,8 @@ class Properties
* doesn't exist.
*/
const std::string getProperty(const std::string &name,
- const std::string &def = "") const
+ const std::string &def = "")
+ const A_WARN_UNUSED
{
const PropertyMap::const_iterator i = mProperties.find(name);
return (i != mProperties.end()) ? i->second : def;
@@ -63,7 +64,7 @@ class Properties
* doesn't exist.
*/
float getFloatProperty(const std::string &name,
- const float def = 0.0f) const
+ const float def = 0.0f) const A_WARN_UNUSED
{
const PropertyMap::const_iterator i = mProperties.find(name);
float ret = def;
@@ -85,7 +86,7 @@ class Properties
* doesn't exist.
*/
bool getBoolProperty(const std::string &name,
- const bool def = false) const
+ const bool def = false) const A_WARN_UNUSED
{
const PropertyMap::const_iterator i = mProperties.find(name);
bool ret = def;
@@ -106,7 +107,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 A_WARN_UNUSED
{ return (mProperties.find(name) != mProperties.end()); }
/**