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/Quotes/src/QuotesProviderBase.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/Quotes/src/QuotesProviderBase.cpp') diff --git a/plugins/Quotes/src/QuotesProviderBase.cpp b/plugins/Quotes/src/QuotesProviderBase.cpp index f90f90e462..86f2cedecf 100644 --- a/plugins/Quotes/src/QuotesProviderBase.cpp +++ b/plugins/Quotes/src/QuotesProviderBase.cpp @@ -138,8 +138,8 @@ CQuotesProviderBase::CXMLFileInfo init_xml_info(LPCTSTR pszFileName, bool& rbSuc } CQuotesProviderBase::CQuotesProviderBase() - : m_hEventSettingsChanged(::CreateEvent(NULL, FALSE, FALSE, NULL)), - m_hEventRefreshContact(::CreateEvent(NULL, FALSE, FALSE, NULL)), + : m_hEventSettingsChanged(::CreateEvent(nullptr, FALSE, FALSE, nullptr)), + m_hEventRefreshContact(::CreateEvent(nullptr, FALSE, FALSE, nullptr)), m_bRefreshInProgress(false) { } @@ -152,7 +152,7 @@ CQuotesProviderBase::~CQuotesProviderBase() bool CQuotesProviderBase::Init() { - bool bSucceded = m_pXMLInfo != NULL; + bool bSucceded = m_pXMLInfo != nullptr; if (!m_pXMLInfo) { CQuotesProviderVisitorDbSettings visitor; Accept(visitor); @@ -510,7 +510,7 @@ bool show_popup(const IQuotesProvider* pProvider, const tstring& sTitle = visitor.GetResult(); mir_wstrncpy(ppd.lptzContactName, sTitle.c_str(), MAX_CONTACTNAME); { - ptrW ss(variables_parsedup((wchar_t*)rsFormat.c_str(), 0, hContact)); + ptrW ss(variables_parsedup((wchar_t*)rsFormat.c_str(), nullptr, hContact)); tstring sText = format_rate(pProvider, hContact, tstring(ss)); mir_wstrncpy(ppd.lptzText, sText.c_str(), MAX_SECONDLINE); } @@ -547,7 +547,7 @@ bool show_popup(const IQuotesProvider* pProvider, void CQuotesProviderBase::WriteContactRate(MCONTACT hContact, double dRate, const tstring& rsSymbol/* = ""*/) { - time_t nTime = ::time(NULL); + time_t nTime = ::time(nullptr); if (false == rsSymbol.empty()) db_set_ws(hContact, QUOTES_PROTOCOL_NAME, DB_STR_QUOTE_SYMBOL, rsSymbol.c_str()); -- cgit v1.2.3