diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-31 19:09:56 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-31 19:09:56 +0000 |
commit | 33ed395de0eb385315d949c77b4e1289a6684112 (patch) | |
tree | 6698849d0a9396582130b7b2758565566b72f694 /plugins/SecureIM/src/crypt_icons.cpp | |
parent | cecb2a6e6e221b6cb94e48ef601d12bfde7f60f4 (diff) |
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@4267 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SecureIM/src/crypt_icons.cpp')
-rw-r--r-- | plugins/SecureIM/src/crypt_icons.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/SecureIM/src/crypt_icons.cpp b/plugins/SecureIM/src/crypt_icons.cpp index b22fc909cf..6bcfcde382 100644 --- a/plugins/SecureIM/src/crypt_icons.cpp +++ b/plugins/SecureIM/src/crypt_icons.cpp @@ -15,7 +15,7 @@ static ICON_CACHE& getCacheItem(int mode, int type) int m = mode & 0x0f, s = (mode & SECURED)>>4, i; // разобрали на части - режим и состояние
HICON icon;
- for(i=0; i < arIcoList.getCount(); i++)
+ for (i=0; i < arIcoList.getCount(); i++)
if (arIcoList[i].mode == ((type<<8) | mode))
return arIcoList[i];
@@ -78,7 +78,7 @@ void ShowStatusIcon(HANDLE hContact, int mode) if ( ServiceExists(MS_MSG_MODIFYICON)) { // обновить иконки в srmm
StatusIconData sid = {sizeof(sid) };
sid.szModule = (char*)MODULENAME;
- for(int i = MODE_NATIVE; i < MODE_CNT; i++) {
+ for (int i = MODE_NATIVE; i < MODE_CNT; i++) {
sid.dwId = i;
sid.flags = (mode & SECURED) ? 0 : MBF_DISABLED;
if (mode == -1 || (mode & 0x0f) != i || isChatRoom(hContact))
@@ -97,7 +97,7 @@ void ShowStatusIcon(HANDLE hContact) void ShowStatusIconNotify(HANDLE hContact)
{
- int mode = isContactSecured(hContact);
+ BYTE mode = isContactSecured(hContact);
NotifyEventHooks(g_hEvent[(mode&SECURED)!=0], (WPARAM)hContact, 0);
ShowStatusIcon(hContact,mode);
}
|