diff options
author | Peter Powell <petpow@saberuk.com> | 2018-04-14 13:17:20 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-04-16 15:07:06 +0100 |
commit | 7c2adcb46a01c7cf0f0e6f5aeeef070232e7d222 (patch) | |
tree | 0576962a22b5d0b71cb8536923ad31f73ae9bafd /include | |
parent | 7ef2f87e39bd22c7914caf7f2afbb1a3bf8fbd43 (diff) |
Convert ConfigTag::CheckRange to a function template.
Diffstat (limited to 'include')
-rw-r--r-- | include/configreader.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/configreader.h b/include/configreader.h index bb4c03fae..d55c1830f 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -69,16 +69,6 @@ class CoreExport ConfigTag : public refcountbase */ bool readString(const std::string& key, std::string& value, bool allow_newline = false); - /** Check for an out of range value. If the value falls outside the boundaries a warning is - * logged and the value is corrected (set to def). - * @param key The key name, used in the warning message - * @param res The value to verify and modify if needed - * @param def The default value, res will be set to this if (min <= res <= max) doesn't hold true - * @param min Minimum accepted value for res - * @param max Maximum accepted value for res - */ - void CheckRange(const std::string& key, long& res, long def, long min, long max); - std::string getTagLocation(); inline const ConfigItems& getItems() const { return items; } |