From 754c5e27f878dc4a46131593e00e78e054faa995 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 1 Apr 2013 19:37:35 +0000 Subject: SecureIM: - thread cleaning; - fix SRMM status icon; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@4278 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SecureIM/src/crypt_icons.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/SecureIM/src/crypt_icons.cpp') diff --git a/plugins/SecureIM/src/crypt_icons.cpp b/plugins/SecureIM/src/crypt_icons.cpp index 6bcfcde382..d5eacbd51b 100644 --- a/plugins/SecureIM/src/crypt_icons.cpp +++ b/plugins/SecureIM/src/crypt_icons.cpp @@ -75,7 +75,7 @@ void ShowStatusIcon(HANDLE hContact, int mode) ExtraIcon_Clear(g_hCLIcon, hMC); } - if ( ServiceExists(MS_MSG_MODIFYICON)) { // обновить иконки в srmm + if (ServiceExists(MS_MSG_MODIFYICON)) { // обновить иконки в srmm StatusIconData sid = {sizeof(sid) }; sid.szModule = (char*)MODULENAME; for (int i = MODE_NATIVE; i < MODE_CNT; i++) { @@ -84,7 +84,7 @@ void ShowStatusIcon(HANDLE hContact, int mode) if (mode == -1 || (mode & 0x0f) != i || isChatRoom(hContact)) sid.flags |= MBF_HIDDEN; // отключаем все ненужные иконки CallService(MS_MSG_MODIFYICON, (WPARAM)hContact, (LPARAM)&sid); - if ( hMC ) + if (hMC ) CallService(MS_MSG_MODIFYICON, (WPARAM)hMC, (LPARAM)&sid); } } @@ -98,7 +98,7 @@ void ShowStatusIcon(HANDLE hContact) void ShowStatusIconNotify(HANDLE hContact) { BYTE mode = isContactSecured(hContact); - NotifyEventHooks(g_hEvent[(mode&SECURED)!=0], (WPARAM)hContact, 0); + NotifyEventHooks(g_hEvent[(mode&SECURED) != 0], (WPARAM)hContact, 0); ShowStatusIcon(hContact,mode); } @@ -109,7 +109,7 @@ void RefreshContactListIcons(void) HANDLE hContact = db_find_first(); while (hContact) { // и снова зажигаем иконку - if ( isSecureProtocol(hContact)) + if (isSecureProtocol(hContact)) ShowStatusIcon(hContact); hContact = db_find_next(hContact); } -- cgit v1.2.3