summaryrefslogtreecommitdiff
path: root/src/configuration.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/configuration.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/configuration.h')
-rw-r--r--src/configuration.h31
1 files changed, 18 insertions, 13 deletions
diff --git a/src/configuration.h b/src/configuration.h
index e351c05bf..8f16c23c0 100644
--- a/src/configuration.h
+++ b/src/configuration.h
@@ -66,7 +66,7 @@ class ConfigurationListManager
* \param container The container to insert the object to
*/
virtual CONT readConfigItem(ConfigurationObject *const obj,
- CONT container) = 0;
+ CONT container) A_WARN_UNUSED = 0;
virtual ~ConfigurationListManager() {}
};
@@ -102,17 +102,22 @@ class ConfigurationObject
* \param deflt Default option if not there or error.
*/
std::string getValue(const std::string &key,
- const std::string &deflt) const;
+ const std::string &deflt) const A_WARN_UNUSED;
- int getValue(const std::string &key, const int deflt) const;
+ int getValue(const std::string &key,
+ const int deflt) const A_WARN_UNUSED;
- int getValueInt(const std::string &key, const int deflt) const;
+ int getValueInt(const std::string &key,
+ const int deflt) const A_WARN_UNUSED;
- bool getValueBool(const std::string &key, const bool deflt) const;
+ bool getValueBool(const std::string &key,
+ const bool deflt) const A_WARN_UNUSED;
- unsigned getValue(const std::string &key, const unsigned deflt) const;
+ unsigned getValue(const std::string &key,
+ const unsigned deflt) const A_WARN_UNUSED;
- double getValue(const std::string &key, const double deflt) const;
+ double getValue(const std::string &key,
+ const double deflt) const A_WARN_UNUSED;
/**
* Re-sets all data in the configuration
@@ -304,7 +309,7 @@ class Configuration final : public ConfigurationObject
bool resetBoolValue(const std::string &key);
- const std::string getConfigPath() const
+ const std::string getConfigPath() const A_WARN_UNUSED
{ return mConfigPath; }
/**
@@ -312,12 +317,12 @@ class Configuration final : public ConfigurationObject
* The default value returned in based on fallbacks registry.
* @see defaults.h
*/
- int getIntValue(const std::string &key) const;
- float getFloatValue(const std::string &key) const;
- std::string getStringValue(const std::string &key) const;
- bool getBoolValue(const std::string &key) const;
+ int getIntValue(const std::string &key) const A_WARN_UNUSED;
+ float getFloatValue(const std::string &key) const A_WARN_UNUSED;
+ std::string getStringValue(const std::string &key) const A_WARN_UNUSED;
+ bool getBoolValue(const std::string &key) const A_WARN_UNUSED;
- std::string getDirectory() const
+ std::string getDirectory() const A_WARN_UNUSED
{ return mDirectory; }
void removeOldKeys();