diff options
author | Peter Powell <petpow@saberuk.com> | 2018-04-14 16:53:03 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-04-16 15:07:06 +0100 |
commit | 7ef2f87e39bd22c7914caf7f2afbb1a3bf8fbd43 (patch) | |
tree | 29c9efd1c7f1f2e3c9e8d058068c28d5b66c40e0 /include/configreader.h | |
parent | dec17a2e32573a32751c975b5b55217442cd3185 (diff) |
Remove the default value in ConfigTag::get{Duration,Float,Int}.
Diffstat (limited to 'include/configreader.h')
-rw-r--r-- | include/configreader.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/configreader.h b/include/configreader.h index 9349813d6..bb4c03fae 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -45,9 +45,9 @@ class CoreExport ConfigTag : public refcountbase /** Get the value of an option, using def if it does not exist */ std::string getString(const std::string& key, const std::string& def = "", size_t minlen = 0, size_t maxlen = UINT32_MAX); /** Get the value of an option, using def if it does not exist */ - long getInt(const std::string& key, long def = 0, long min = LONG_MIN, long max = LONG_MAX); + long getInt(const std::string& key, long def, long min = LONG_MIN, long max = LONG_MAX); /** Get the value of an option, using def if it does not exist */ - double getFloat(const std::string& key, double def = 0); + double getFloat(const std::string& key, double def); /** Get the value of an option, using def if it does not exist */ bool getBool(const std::string& key, bool def = false); @@ -59,7 +59,7 @@ class CoreExport ConfigTag : public refcountbase * @param max Maximum acceptable value (optional) * @return The duration in seconds */ - long getDuration(const std::string& key, long def = 0, long min = LONG_MIN, long max = LONG_MAX); + long getDuration(const std::string& key, long def, long min = LONG_MIN, long max = LONG_MAX); /** Get the value of an option * @param key The option to get |