diff options
author | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:03:31 +0100 |
---|---|---|
committer | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:07:33 +0100 |
commit | a7c24ca48995cf2bf436156302f96b91bf135409 (patch) | |
tree | 953835509ff1b778833e78fd7b74b05e05e77c84 /plugins/HistoryStats/src/column_words.cpp | |
parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/HistoryStats/src/column_words.cpp')
-rw-r--r-- | plugins/HistoryStats/src/column_words.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/HistoryStats/src/column_words.cpp b/plugins/HistoryStats/src/column_words.cpp index b19b363913..47028ffccf 100644 --- a/plugins/HistoryStats/src/column_words.cpp +++ b/plugins/HistoryStats/src/column_words.cpp @@ -79,12 +79,12 @@ ColWords::ColWords() , m_bDetail(true)
, m_bDetailInOut(false)
, m_bInOutColor(false)
- , m_hVisMode(NULL)
- , m_hNum(NULL)
- , m_hOffset(NULL)
- , m_hDetail(NULL)
- , m_hDetailInOut(NULL)
- , m_hInOutColor(NULL)
+ , m_hVisMode(nullptr)
+ , m_hNum(nullptr)
+ , m_hOffset(nullptr)
+ , m_hDetail(nullptr)
+ , m_hDetailInOut(nullptr)
+ , m_hInOutColor(nullptr)
{
}
@@ -133,7 +133,7 @@ void ColWords::impl_configToUI(OptionsCtrl& Opt, OptionsCtrl::Item hGroup) OptionsCtrl::Group hTemp;
hTemp = Opt.insertGroup(hGroup, TranslateT("Words type"));
- m_hVisMode = Opt.insertRadio(hTemp, NULL, TranslateT("Most common words"));
+ m_hVisMode = Opt.insertRadio(hTemp, nullptr, TranslateT("Most common words"));
Opt.insertRadio(hTemp, m_hVisMode, TranslateT("Least common words"));
Opt.insertRadio(hTemp, m_hVisMode, TranslateT("Longest words"));
m_hNum = Opt.insertEdit (hGroup, TranslateT("Number of words"), L"", OptionsCtrl::OCF_NUMBER);
@@ -174,7 +174,7 @@ void ColWords::impl_contactDataFree(Contact& contact) const if (pTrData)
{
delete pTrData;
- contact.setSlot(contactDataTransformSlotGet(), NULL);
+ contact.setSlot(contactDataTransformSlotGet(), nullptr);
}
}
@@ -197,7 +197,7 @@ void ColWords::impl_contactDataTransformCleanup(Contact& contact) const pData->clear();
delete pData;
- contact.setSlot(contactDataSlotGet(), NULL);
+ contact.setSlot(contactDataSlotGet(), nullptr);
}
}
|