summaryrefslogtreecommitdiff
path: root/plugins/SmileyAdd/src/imagecache.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-04-03 18:05:17 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-04-03 18:05:17 +0000
commita4f31a97e407280dc7e306a6c96948b53f9c0cab (patch)
tree8e76329ed4784e0c8e1ee81070c5b9985989263a /plugins/SmileyAdd/src/imagecache.cpp
parentf07feab44bd3ef047229f511fadb3a151f200654 (diff)
SmileyAdd:
- array indexes totally unborkred; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@4296 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SmileyAdd/src/imagecache.cpp')
-rw-r--r--plugins/SmileyAdd/src/imagecache.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/SmileyAdd/src/imagecache.cpp b/plugins/SmileyAdd/src/imagecache.cpp
index 16d01d1f7e..28de0704b8 100644
--- a/plugins/SmileyAdd/src/imagecache.cpp
+++ b/plugins/SmileyAdd/src/imagecache.cpp
@@ -42,14 +42,12 @@ static void CALLBACK timerProc(HWND, UINT, UINT_PTR, DWORD)
lastdllname.clear();
}
- for (int i=g_imagecache.getCount(); i--; )
+ for (int i=g_imagecache.getCount()-1; i >= 0; i--)
g_imagecache[i].ProcessTimerTick(ts);
- if (g_imagecache.getCount() == 0)
- {
+ if (g_imagecache.getCount() == 0) {
g_imagecache.destroy();
- if (timerId && (timerId+1) && lastmodule == NULL)
- {
+ if (timerId && (timerId+1) && lastmodule == NULL) {
KillTimer(NULL, timerId);
timerId = 0;
}