diff options
Diffstat (limited to 'common/ini-file.cpp')
-rw-r--r-- | common/ini-file.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/common/ini-file.cpp b/common/ini-file.cpp index 7fa17da76c..7e5a098b4e 100644 --- a/common/ini-file.cpp +++ b/common/ini-file.cpp @@ -249,7 +249,7 @@ void INIFile::removeSection(const String §ion) { bool INIFile::hasSection(const String §ion) const { assert(isValidName(section)); const Section *s = getSection(section); - return s != 0; + return s != nullptr; } void INIFile::renameSection(const String &oldName, const String &newName) { @@ -341,7 +341,7 @@ INIFile::Section *INIFile::getSection(const String §ion) { return &(*i); } } - return 0; + return nullptr; } const INIFile::Section *INIFile::getSection(const String §ion) const { @@ -350,11 +350,11 @@ const INIFile::Section *INIFile::getSection(const String §ion) const { return &(*i); } } - return 0; + return nullptr; } bool INIFile::Section::hasKey(const String &key) const { - return getKey(key) != 0; + return getKey(key) != nullptr; } const INIFile::KeyValue* INIFile::Section::getKey(const String &key) const { @@ -363,7 +363,7 @@ const INIFile::KeyValue* INIFile::Section::getKey(const String &key) const { return &(*i); } } - return 0; + return nullptr; } void INIFile::Section::setKey(const String &key, const String &value) { |