summaryrefslogtreecommitdiff
path: root/plugins/Quotes/src/QuotesProviderVisitorTendency.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-07-26 09:20:25 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-07-26 09:20:25 +0000
commit6e53dfca72b932c4bdcd7aa02ca62bf8b2630eac (patch)
tree2e8bb660c908b54914abd562af8aafa4a486c846 /plugins/Quotes/src/QuotesProviderVisitorTendency.cpp
parenta61c8728b379057fe7f0a0d86fe0b037598229dd (diff)
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
Diffstat (limited to 'plugins/Quotes/src/QuotesProviderVisitorTendency.cpp')
-rw-r--r--plugins/Quotes/src/QuotesProviderVisitorTendency.cpp24
1 files changed, 12 insertions, 12 deletions
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;
}