Use nullptr (#816)

Changes applied by 'clang-modernize -use-nullptr [...]'
This commit is contained in:
J-P Nurmi
2015-02-25 09:19:28 +01:00
parent 26cc16caa7
commit 70c0ffb10b
38 changed files with 246 additions and 246 deletions

View File

@@ -31,7 +31,7 @@ struct ConfigStackEntry {
};
CConfigEntry::CConfigEntry()
: m_pSubConfig(NULL) {
: m_pSubConfig(nullptr) {
}
CConfigEntry::CConfigEntry(const CConfig& Config)
@@ -39,7 +39,7 @@ CConfigEntry::CConfigEntry(const CConfig& Config)
}
CConfigEntry::CConfigEntry(const CConfigEntry& other)
: m_pSubConfig(NULL) {
: m_pSubConfig(nullptr) {
if (other.m_pSubConfig)
m_pSubConfig = new CConfig(*other.m_pSubConfig);
}
@@ -54,7 +54,7 @@ CConfigEntry& CConfigEntry::operator=(const CConfigEntry& other) {
if (other.m_pSubConfig)
m_pSubConfig = new CConfig(*other.m_pSubConfig);
else
m_pSubConfig = NULL;
m_pSubConfig = nullptr;
return *this;
}