diff options
Diffstat (limited to 'plugins/SmileyAdd/src/SmileyBase.cpp')
-rw-r--r-- | plugins/SmileyAdd/src/SmileyBase.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/SmileyAdd/src/SmileyBase.cpp b/plugins/SmileyAdd/src/SmileyBase.cpp index 9603e6da17..f0107e758c 100644 --- a/plugins/SmileyAdd/src/SmileyBase.cpp +++ b/plugins/SmileyAdd/src/SmileyBase.cpp @@ -366,8 +366,7 @@ HRESULT ISmileyBase::GetTooltip(BSTR *bstrHint) void CloseSmileys(void)
{
- for (int i=regSmileys.getCount(); i--;)
- {
+ for (int i=regSmileys.getCount()-1; i >= 0; i--) {
regSmileys[i]->OnClose();
regSmileys[i]->Close(OLECLOSE_NOSAVE);
}
@@ -375,8 +374,9 @@ void CloseSmileys(void) int CheckForTip(int x, int y, HWND hwnd, TCHAR** smltxt)
{
- for (int i=0; i<regSmileys.getCount(); ++i)
- if (regSmileys[i]->QueryHitPointSpecial(x, y, hwnd, smltxt)) return i;
+ for (int i=0; i < regSmileys.getCount(); ++i)
+ if (regSmileys[i]->QueryHitPointSpecial(x, y, hwnd, smltxt))
+ return i;
return -1;
}
|