summaryrefslogtreecommitdiff
path: root/plugins/Quotes/QuotesProviderYahoo.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-02 20:55:18 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-02 20:55:18 +0000
commit78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch)
tree8512c50df70b8dd80c919e88ade3419207c95956 /plugins/Quotes/QuotesProviderYahoo.cpp
parentce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff)
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Quotes/QuotesProviderYahoo.cpp')
-rw-r--r--plugins/Quotes/QuotesProviderYahoo.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Quotes/QuotesProviderYahoo.cpp b/plugins/Quotes/QuotesProviderYahoo.cpp
index e6315953de..35edb3207c 100644
--- a/plugins/Quotes/QuotesProviderYahoo.cpp
+++ b/plugins/Quotes/QuotesProviderYahoo.cpp
@@ -10,11 +10,11 @@ namespace
{
void remove_quotes(tstring& s)
{
- if(*s.begin() == _T('"'))
+ if (*s.begin() == _T('"'))
{
s.erase(s.begin());
}
- if(*s.rbegin() == _T('"'))
+ if (*s.rbegin() == _T('"'))
{
tstring::iterator i(s.begin());
std::advance(i,s.size()-1);
@@ -24,13 +24,13 @@ namespace
void remove_end_of_line(tstring& s)
{
- if(*s.rbegin() == _T('\n'))
+ if (*s.rbegin() == _T('\n'))
{
tstring::iterator i(s.begin());
std::advance(i,s.size()-1);
s.erase(i);
}
- if(*s.rbegin() == _T('\r'))
+ if (*s.rbegin() == _T('\r'))
{
tstring::iterator i(s.begin());
std::advance(i,s.size()-1);
@@ -102,10 +102,10 @@ void CQuotesProviderYahoo::RefreshQuotes(TContracts& anContacts)
{
oURL << _T("&f=snl1ohgpc1");
CHTTPSession http;
- if((true == http.OpenURL(oURL.str())) && (true == IsOnline()))
+ if ((true == http.OpenURL(oURL.str())) && (true == IsOnline()))
{
tstring sFile;
- if((true == http.ReadResponce(sFile)) && (true == IsOnline()))
+ if ((true == http.ReadResponce(sFile)) && (true == IsOnline()))
{
tistringstream out_str(sFile.c_str());
while(false == out_str.eof())