diff options
| author | 2018-04-14 13:17:20 +0100 | |
|---|---|---|
| committer | 2018-04-16 15:07:06 +0100 | |
| commit | 7c2adcb46a01c7cf0f0e6f5aeeef070232e7d222 (patch) | |
| tree | 0576962a22b5d0b71cb8536923ad31f73ae9bafd /include/configreader.h | |
| parent | Remove the default value in ConfigTag::get{Duration,Float,Int}. (diff) | |
Convert ConfigTag::CheckRange to a function template.
Diffstat (limited to 'include/configreader.h')
| -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; } |
