diff options
author | George Hazan <george.hazan@gmail.com> | 2014-08-12 18:59:44 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-08-12 18:59:44 +0000 |
commit | 4e5548a98703325099017bf6bf04b2fb5edefbd4 (patch) | |
tree | d66558d679c6d538ffc6dc6e24214cabece6a6f1 /plugins/Quotes/src/QuotesProviderBase.cpp | |
parent | 74e9b42783af6a0a9d51df6271bca169e3dcc81d (diff) |
this code was too crazy to work
git-svn-id: http://svn.miranda-ng.org/main/trunk@10169 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Quotes/src/QuotesProviderBase.cpp')
-rw-r--r-- | plugins/Quotes/src/QuotesProviderBase.cpp | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/plugins/Quotes/src/QuotesProviderBase.cpp b/plugins/Quotes/src/QuotesProviderBase.cpp index 560bfde7c2..d05d21f304 100644 --- a/plugins/Quotes/src/QuotesProviderBase.cpp +++ b/plugins/Quotes/src/QuotesProviderBase.cpp @@ -273,7 +273,7 @@ void CQuotesProviderBase::SetContactStatus(MCONTACT hContact,int nNewStatus) db_set_ts(hContact,LIST_MODULE_NAME,CONTACT_LIST_NAME,sSymbol.c_str());
}
- CExtraImages::GetInstance().SetContactExtraImage(hContact,CExtraImages::eiEmpty);
+ SetContactExtraImage(hContact, eiEmpty);
}
}
}
@@ -588,19 +588,15 @@ namespace //if(true == IsWithinAccuracy(dCurrRate,dPrevRate))
if(CTendency::NotChanged == nComparison)
- {
- bResult = CExtraImages::GetInstance().SetContactExtraImage(hContact,CExtraImages::eiNotChanged);
- }
- else if(CTendency::Up == nComparison)//(dCurrRate > dPrevRate)
- {
- bResult = CExtraImages::GetInstance().SetContactExtraImage(hContact,CExtraImages::eiUp);
- }
- else if(CTendency::Down == nComparison)//(dCurrRate < dPrevRate)
- {
- bResult = CExtraImages::GetInstance().SetContactExtraImage(hContact,CExtraImages::eiDown);
- }
+ return SetContactExtraImage(hContact, eiNotChanged);
+
+ if(CTendency::Up == nComparison)//(dCurrRate > dPrevRate)
+ return SetContactExtraImage(hContact, eiUp);
+
+ if(CTendency::Down == nComparison)//(dCurrRate < dPrevRate)
+ return SetContactExtraImage(hContact, eiDown);
- return bResult;
+ return false;
}
bool show_popup(const IQuotesProvider* pProvider,
|