mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Use nullptr (#816)
Changes applied by 'clang-modernize -use-nullptr [...]'
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user