diff options
author | George Hazan <ghazan@miranda.im> | 2019-01-17 12:34:29 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-01-17 12:34:29 +0300 |
commit | ede602e86059569e20fa23752e5c0f0d5b9f2d42 (patch) | |
tree | a27eb12fedd9d84e0895704f8fce92eb87645f49 | |
parent | b230e6cd417863f84010e8a0ebba53f8e22a35da (diff) |
code cleaning
-rw-r--r-- | plugins/CurrencyRates/src/CurrencyRatesProviderVisitorFormater.cpp | 12 | ||||
-rw-r--r-- | plugins/CurrencyRates/src/CurrencyRatesProviderVisitorFormater.h | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/plugins/CurrencyRates/src/CurrencyRatesProviderVisitorFormater.cpp b/plugins/CurrencyRates/src/CurrencyRatesProviderVisitorFormater.cpp index 9c4477f22a..8f299d762f 100644 --- a/plugins/CurrencyRates/src/CurrencyRatesProviderVisitorFormater.cpp +++ b/plugins/CurrencyRates/src/CurrencyRatesProviderVisitorFormater.cpp @@ -17,7 +17,7 @@ const tstring& CCurrencyRatesProviderVisitorFormater::GetResult()const return m_sResult; } -static bool get_fetch_time(MCONTACT hContact, time_t& rTime) +static bool get_fetch_time(MCONTACT hContact, time_t &rTime) { DBVARIANT dbv; if (db_get(hContact, CURRENCYRATES_MODULE_NAME, DB_STR_CURRENCYRATE_FETCH_TIME, &dbv) || (DBVT_DWORD != dbv.type)) @@ -27,7 +27,7 @@ static bool get_fetch_time(MCONTACT hContact, time_t& rTime) return true; } -static tstring format_fetch_time(const CCurrencyRatesProviderBase&, MCONTACT hContact, const tstring& rsFormat) +static tstring format_fetch_time(MCONTACT hContact, const tstring &rsFormat) { time_t nTime; if (true == get_fetch_time(hContact, nTime)) { @@ -41,7 +41,7 @@ static tstring format_fetch_time(const CCurrencyRatesProviderBase&, MCONTACT hCo return tstring(); } -void CCurrencyRatesProviderVisitorFormater::Visit(const CCurrencyRatesProviderBase& rProvider) +void CCurrencyRatesProviderVisitorFormater::Visit(const CCurrencyRatesProviderBase&) { switch (m_chr) { case '%': @@ -56,17 +56,17 @@ void CCurrencyRatesProviderVisitorFormater::Visit(const CCurrencyRatesProviderBa m_sResult = CurrencyRates_DBGetStringW(m_hContact, CURRENCYRATES_MODULE_NAME, DB_STR_CURRENCYRATE_SYMBOL); break; case 'X': - m_sResult = format_fetch_time(rProvider, m_hContact, CurrencyRates_GetTimeFormat(true)); + m_sResult = format_fetch_time(m_hContact, CurrencyRates_GetTimeFormat(true)); break; case 'x': - m_sResult = format_fetch_time(rProvider, m_hContact, CurrencyRates_GetDateFormat(true)); + m_sResult = format_fetch_time(m_hContact, CurrencyRates_GetDateFormat(true)); break; case 't': { tstring sFrmt = CurrencyRates_GetDateFormat(true); sFrmt += L" "; sFrmt += CurrencyRates_GetTimeFormat(true); - m_sResult = format_fetch_time(rProvider, m_hContact, sFrmt); + m_sResult = format_fetch_time(m_hContact, sFrmt); } break; case 'r': diff --git a/plugins/CurrencyRates/src/CurrencyRatesProviderVisitorFormater.h b/plugins/CurrencyRates/src/CurrencyRatesProviderVisitorFormater.h index 65ce84b9e4..0528f21484 100644 --- a/plugins/CurrencyRates/src/CurrencyRatesProviderVisitorFormater.h +++ b/plugins/CurrencyRates/src/CurrencyRatesProviderVisitorFormater.h @@ -10,8 +10,8 @@ public: const tstring& GetResult()const; private: - virtual void Visit(const CCurrencyRatesProviderBase& rProvider)override; - virtual void Visit(const CCurrencyRatesProviderCurrencyConverter& rProvider)override; + virtual void Visit(const CCurrencyRatesProviderBase& rProvider) override; + virtual void Visit(const CCurrencyRatesProviderCurrencyConverter& rProvider) override; private: void FormatDoubleHelper(LPCSTR pszDbSet, const tstring sInvalid = L"-"); |