From a7c24ca48995cf2bf436156302f96b91bf135409 Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Mon, 13 Nov 2017 15:03:31 +0100 Subject: Code modernize ... * replace 0/NULL with nullptr [using clang-tidy] --- plugins/HistoryStats/src/settingstree.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/HistoryStats/src/settingstree.cpp') diff --git a/plugins/HistoryStats/src/settingstree.cpp b/plugins/HistoryStats/src/settingstree.cpp index 21d6501cf8..ff3893777c 100644 --- a/plugins/HistoryStats/src/settingstree.cpp +++ b/plugins/HistoryStats/src/settingstree.cpp @@ -10,12 +10,12 @@ void SettingsTree::makeKeyValid() } SettingsTree::SettingsTree() : - m_pCurValues(NULL) + m_pCurValues(nullptr) { } SettingsTree::SettingsTree(const ext::string& config) : - m_pCurValues(NULL) + m_pCurValues(nullptr) { fromString(config); } @@ -122,7 +122,7 @@ void SettingsTree::setKey(const wchar_t* key) if (i != m_Keys.end()) m_pCurValues = &i->second; else - m_pCurValues = NULL; + m_pCurValues = nullptr; } bool SettingsTree::readBool(const wchar_t* setting, bool errorValue) const @@ -213,7 +213,7 @@ bool SettingsTree::delSetting(const wchar_t* setting) if (m_pCurValues->size() == 0) { m_Keys.erase(m_CurKey); - m_pCurValues = NULL; + m_pCurValues = nullptr; } return true; -- cgit v1.2.3