From 6e53dfca72b932c4bdcd7aa02ca62bf8b2630eac Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 26 Jul 2016 09:20:25 +0000 Subject: less TCHARs: - TCHAR is replaced with wchar_t everywhere; - LPGENT replaced with either LPGENW or LPGEN; - fixes for ANSI plugins that improperly used _t functions; - TCHAR *t removed from MAllStrings; - ptszGroup, ptszTitle & ptszTab in OPTIONSDIALOGPAGE replaced with pwsz* git-svn-id: http://svn.miranda-ng.org/main/trunk@17133 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- .../Quotes/src/QuotesProviderVisitorTendency.cpp | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'plugins/Quotes/src/QuotesProviderVisitorTendency.cpp') diff --git a/plugins/Quotes/src/QuotesProviderVisitorTendency.cpp b/plugins/Quotes/src/QuotesProviderVisitorTendency.cpp index a4899909e1..1e6d4fe384 100644 --- a/plugins/Quotes/src/QuotesProviderVisitorTendency.cpp +++ b/plugins/Quotes/src/QuotesProviderVisitorTendency.cpp @@ -1,6 +1,6 @@ #include "stdafx.h" -CQuotesProviderVisitorTendency::CQuotesProviderVisitorTendency(MCONTACT hContact, TCHAR chr) +CQuotesProviderVisitorTendency::CQuotesProviderVisitorTendency(MCONTACT hContact, wchar_t chr) : m_hContact(hContact), m_chr(chr), m_bValid(false), m_dResult(0.0) { } @@ -8,11 +8,11 @@ CQuotesProviderVisitorTendency::CQuotesProviderVisitorTendency(MCONTACT hContact void CQuotesProviderVisitorTendency::Visit(const CQuotesProviderBase&) { switch (m_chr) { - case _T('r'): - case _T('R'): + case 'r': + case 'R': GetValue(DB_STR_QUOTE_CURR_VALUE); break; - case _T('p'): + case 'p': GetValue(DB_STR_QUOTE_PREV_VALUE); break; } @@ -21,13 +21,13 @@ void CQuotesProviderVisitorTendency::Visit(const CQuotesProviderBase&) void CQuotesProviderVisitorTendency::Visit(const CQuotesProviderGoogleFinance&) { switch (m_chr) { - case _T('o'): + case 'o': GetValue(DB_STR_GOOGLE_FINANCE_OPEN_VALUE); break; - case _T('d'): + case 'd': GetValue(DB_STR_GOOGLE_FINANCE_DIFF); break; - case _T('y'): + case 'y': GetValue(DB_STR_GOOGLE_FINANCE_PERCENT_CHANGE_TO_YERSTERDAY_CLOSE); break; } @@ -36,19 +36,19 @@ void CQuotesProviderVisitorTendency::Visit(const CQuotesProviderGoogleFinance&) void CQuotesProviderVisitorTendency::Visit(const CQuotesProviderYahoo&) { switch (m_chr) { - case _T('o'): + case 'o': GetValue(DB_STR_YAHOO_OPEN_VALUE); break; - case _T('h'): + case 'h': GetValue(DB_STR_YAHOO_DAY_HIGH); break; - case _T('P'): + case 'P': GetValue(DB_STR_YAHOO_PREVIOUS_CLOSE); break; - case _T('c'): + case 'c': GetValue(DB_STR_YAHOO_CHANGE); break; - case _T('g'): + case 'g': GetValue(DB_STR_YAHOO_DAY_LOW); break; } -- cgit v1.2.3