diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-10-27 15:30:02 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-10-27 15:30:02 +0100 |
commit | 5fb509060fa7552a25efccad11595898d420d476 (patch) | |
tree | 238707b566746ce30db2c81eb518618378847e99 /src/configparser.cpp | |
parent | 3a3ff949670c61a4a8856e1391222e156eb1cd17 (diff) |
Remove if (!this) check from ConfigTag::readString()
Diffstat (limited to 'src/configparser.cpp')
-rw-r--r-- | src/configparser.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/configparser.cpp b/src/configparser.cpp index 1c406f218..89ad6493a 100644 --- a/src/configparser.cpp +++ b/src/configparser.cpp @@ -385,17 +385,6 @@ bool ParseStack::ParseFile(const std::string& path, int flags, const std::string bool ConfigTag::readString(const std::string& key, std::string& value, bool allow_lf) { -#ifdef __clang__ -# pragma clang diagnostic push -# pragma clang diagnostic ignored "-Wunknown-pragmas" -# pragma clang diagnostic ignored "-Wundefined-bool-conversion" -#endif - // TODO: this is undefined behaviour but changing the API is too risky for 2.0. - if (!this) - return false; -#ifdef __clang__ -# pragma clang diagnostic pop -#endif for(std::vector<KeyVal>::iterator j = items.begin(); j != items.end(); ++j) { if(j->first != key) |