aboutsummaryrefslogtreecommitdiffstats
path: root/include/configreader.h
diff options
context:
space:
mode:
authorGravatar Peter Powell2018-04-14 14:59:35 +0100
committerGravatar Peter Powell2018-04-16 15:24:49 +0100
commit2d36fcb16ef3209fffbe9f4b600971a1edd2ae4b (patch)
tree4e8f371548bfbc844ad7db42b775db847b141636 /include/configreader.h
parentExtract ConfigTag::getInt magnitude logic to a function template. (diff)
Convert ConfigTag::getDuration to return an unsigned long.
Diffstat (limited to 'include/configreader.h')
-rw-r--r--include/configreader.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/configreader.h b/include/configreader.h
index d55c1830f..85ce21f14 100644
--- a/include/configreader.h
+++ b/include/configreader.h
@@ -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, long min = LONG_MIN, long max = LONG_MAX);
+ unsigned long getDuration(const std::string& key, unsigned long def, unsigned long min = 0, unsigned long max = ULONG_MAX);
/** Get the value of an option
* @param key The option to get