From 78c0815c4118fe24ab78cce2dc48a6232dcd824a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 2 Jun 2012 20:55:18 +0000 Subject: - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SRMM/richutil.c | 2 +- plugins/SRMM/statusicon.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/SRMM') diff --git a/plugins/SRMM/richutil.c b/plugins/SRMM/richutil.c index 14296717f7..87d827db9b 100644 --- a/plugins/SRMM/richutil.c +++ b/plugins/SRMM/richutil.c @@ -241,7 +241,7 @@ static LRESULT CALLBACK RichUtil_Proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM if (IsWindow(hwnd)) { - if((WNDPROC)GetWindowLongPtr(hwnd, GWLP_WNDPROC) == &RichUtil_Proc) + if ((WNDPROC)GetWindowLongPtr(hwnd, GWLP_WNDPROC) == &RichUtil_Proc) SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR)ru->origProc); } diff --git a/plugins/SRMM/statusicon.c b/plugins/SRMM/statusicon.c index d8c5a5d87a..cd7ac3872e 100644 --- a/plugins/SRMM/statusicon.c +++ b/plugins/SRMM/statusicon.c @@ -103,7 +103,7 @@ INT_PTR ModifyStatusIcon(WPARAM wParam, LPARAM lParam) { while(current) { if(strcmp(current->sid.szModule, sid->szModule) == 0 && current->sid.dwId == sid->dwId) { - if(!hContact) { + if (!hContact) { current->sid.flags = sid->flags; if(sid->hIcon) { DestroyIcon(current->sid.hIcon); @@ -146,8 +146,8 @@ void DrawStatusIcons(HANDLE hContact, HDC hDC, RECT r, int gap) { while(current && x < r.right) { sprintf(buff, "SRMMStatusIconFlags%d", current->sid.dwId); flags = DBGetContactSettingByte(hContact, current->sid.szModule, buff, current->sid.flags); - if(!(flags & MBF_HIDDEN)) { - if((flags & MBF_DISABLED) && current->sid.hIconDisabled) hIcon = current->sid.hIconDisabled; + if (!(flags & MBF_HIDDEN)) { + if ((flags & MBF_DISABLED) && current->sid.hIconDisabled) hIcon = current->sid.hIconDisabled; else hIcon = current->sid.hIcon; SetBkMode(hDC, TRANSPARENT); @@ -169,7 +169,7 @@ void CheckIconClick(HANDLE hContact, HWND hwndFrom, POINT pt, RECT r, int gap, i while(current && iconNum >= 0) { sprintf(buff, "SRMMStatusIconFlags%d", current->sid.dwId); flags = DBGetContactSettingByte(hContact, current->sid.szModule, buff, current->sid.flags); - if(!(flags & MBF_HIDDEN)) iconNum--; + if (!(flags & MBF_HIDDEN)) iconNum--; if(iconNum >= 0) current = current->next; } @@ -212,7 +212,7 @@ int GetStatusIconsCount(HANDLE hContact) { while(current) { sprintf(buff, "SRMMStatusIconFlags%d", (int)current->sid.dwId); flags = DBGetContactSettingByte(hContact, current->sid.szModule, buff, current->sid.flags); - if(!(flags & MBF_HIDDEN)) { + if (!(flags & MBF_HIDDEN)) { count ++; } current = current->next; -- cgit v1.2.3