From 7ef2f87e39bd22c7914caf7f2afbb1a3bf8fbd43 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sat, 14 Apr 2018 16:53:03 +0100 Subject: Remove the default value in ConfigTag::get{Duration,Float,Int}. --- include/configreader.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') 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 -- cgit v1.2.3