diff options
Diffstat (limited to 'plugins/Quotes/src/QuotesProviderVisitorTendency.cpp')
-rw-r--r-- | plugins/Quotes/src/QuotesProviderVisitorTendency.cpp | 24 |
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;
}
|