diff options
| author | 2016-04-30 18:23:42 +0100 | |
|---|---|---|
| committer | 2016-04-30 18:50:44 +0100 | |
| commit | 505d0768f8392e3c4775425dd97f41e1c829ef44 (patch) | |
| tree | 55dfa35f2e180b4186baf00ffbfd2ee38c0f1c18 /src/kvilib/irc/KviIdentityProfileSet.cpp | |
| parent | Update my clang-format to 3.8.0 (diff) | |
| download | KVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.tar.gz KVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.tar.bz2 KVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.zip | |
Apply clang-tidy: modernize-use-nullptr
Diffstat (limited to 'src/kvilib/irc/KviIdentityProfileSet.cpp')
| -rw-r--r-- | src/kvilib/irc/KviIdentityProfileSet.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/kvilib/irc/KviIdentityProfileSet.cpp b/src/kvilib/irc/KviIdentityProfileSet.cpp index 73121866d..1c10e1c2c 100644 --- a/src/kvilib/irc/KviIdentityProfileSet.cpp +++ b/src/kvilib/irc/KviIdentityProfileSet.cpp @@ -25,19 +25,19 @@ #include "KviIdentityProfileSet.h" #include "KviConfigurationFile.h" -KviIdentityProfileSet * KviIdentityProfileSet::m_pSelf = NULL; +KviIdentityProfileSet * KviIdentityProfileSet::m_pSelf = nullptr; unsigned int KviIdentityProfileSet::m_uCount = 0; KviIdentityProfileSet::KviIdentityProfileSet() : KviHeapObject() { m_bEnabled = false; - m_pProfiles = 0; + m_pProfiles = nullptr; } KviIdentityProfileSet::KviIdentityProfileSet(const KviIdentityProfileSet & set) { - m_pProfiles = 0; + m_pProfiles = nullptr; copyFrom(set); } @@ -68,7 +68,7 @@ void KviIdentityProfileSet::clear() if(m_pProfiles) { delete m_pProfiles; - m_pProfiles = 0; + m_pProfiles = nullptr; } m_bEnabled = false; } @@ -76,7 +76,7 @@ void KviIdentityProfileSet::clear() KviIdentityProfile * KviIdentityProfileSet::findName(const QString & szName) { if(!m_pProfiles) - return 0; + return nullptr; KviIdentityProfile * pProfile; for(pProfile = m_pProfiles->first(); pProfile; pProfile = m_pProfiles->next()) @@ -85,13 +85,13 @@ KviIdentityProfile * KviIdentityProfileSet::findName(const QString & szName) return pProfile; } - return 0; + return nullptr; } KviIdentityProfile * KviIdentityProfileSet::findNetwork(const QString & szNetwork) { if(!m_pProfiles) - return 0; + return nullptr; KviIdentityProfile * pProfile; for(pProfile = m_pProfiles->first(); pProfile; pProfile = m_pProfiles->next()) @@ -100,7 +100,7 @@ KviIdentityProfile * KviIdentityProfileSet::findNetwork(const QString & szNetwor return pProfile; } - return 0; + return nullptr; } void KviIdentityProfileSet::copyFrom(const KviIdentityProfileSet & src) @@ -126,7 +126,7 @@ void KviIdentityProfileSet::copyFrom(const KviIdentityProfileSet & src) { m_bEnabled = false; delete m_pProfiles; - m_pProfiles = 0; + m_pProfiles = nullptr; } else { @@ -139,7 +139,7 @@ void KviIdentityProfileSet::copyFrom(const KviIdentityProfileSet & src) if(m_pProfiles) { delete m_pProfiles; - m_pProfiles = 0; + m_pProfiles = nullptr; } } } @@ -231,7 +231,7 @@ bool KviIdentityProfileSet::loadPrivate(KviConfigurationFile * pCfg, const QStri { m_bEnabled = false; delete m_pProfiles; - m_pProfiles = 0; + m_pProfiles = nullptr; return false; } return true; |
