aboutsummaryrefslogtreecommitdiff
path: root/common/ini-file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/ini-file.cpp')
-rw-r--r--common/ini-file.cpp10
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 &section) {
bool INIFile::hasSection(const String &section) 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 &section) {
return &(*i);
}
}
- return 0;
+ return nullptr;
}
const INIFile::Section *INIFile::getSection(const String &section) const {
@@ -350,11 +350,11 @@ const INIFile::Section *INIFile::getSection(const String &section) 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) {