diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-06 13:58:20 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-06 13:58:20 +0000 |
commit | 46a53191c1ad11a41c948594e972568e62d155b4 (patch) | |
tree | 7e57e6f7093fb0de766fe13a933d2f9231433e4d /src/modules/utils/windowlist.cpp | |
parent | 1fe5acae909ea64a1de9ac9f58cae5a3c2d3ad1f (diff) |
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@332 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/utils/windowlist.cpp')
-rw-r--r-- | src/modules/utils/windowlist.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/modules/utils/windowlist.cpp b/src/modules/utils/windowlist.cpp index ac1e34f569..fea07ac5fb 100644 --- a/src/modules/utils/windowlist.cpp +++ b/src/modules/utils/windowlist.cpp @@ -41,8 +41,8 @@ static INT_PTR AddToWindowList(WPARAM, LPARAM lParam) static INT_PTR RemoveFromWindowList(WPARAM wParam,LPARAM lParam)
{
int i;
- for(i=0;i<windowListCount;i++)
- if(windowList[i].hwnd==(HWND)lParam && windowList[i].hList==(HANDLE)wParam) {
+ for (i=0;i<windowListCount;i++)
+ if (windowList[i].hwnd==(HWND)lParam && windowList[i].hList==(HANDLE)wParam) {
MoveMemory(&windowList[i],&windowList[i+1],sizeof(WINDOWLISTENTRY)*(windowListCount-i-1));
windowListCount--;
return 0;
@@ -53,8 +53,8 @@ static INT_PTR RemoveFromWindowList(WPARAM wParam,LPARAM lParam) static INT_PTR FindInWindowList(WPARAM wParam,LPARAM lParam)
{
int i;
- for(i=0;i<windowListCount;i++)
- if(windowList[i].hContact==(HANDLE)lParam && windowList[i].hList==(HANDLE)wParam)
+ for (i=0;i<windowListCount;i++)
+ if (windowList[i].hContact==(HANDLE)lParam && windowList[i].hList==(HANDLE)wParam)
return (INT_PTR)windowList[i].hwnd;
return (INT_PTR)(HWND)NULL;
}
@@ -63,8 +63,8 @@ static INT_PTR BroadcastToWindowList(WPARAM wParam,LPARAM lParam) {
int i;
MSG *msg=(MSG*)lParam;
- for(i=0;i<windowListCount;i++)
- if(windowList[i].hList==(HANDLE)wParam)
+ for (i=0;i<windowListCount;i++)
+ if (windowList[i].hList==(HANDLE)wParam)
SendMessage(windowList[i].hwnd,msg->message,msg->wParam,msg->lParam);
return 0;
}
@@ -73,8 +73,8 @@ static INT_PTR BroadcastToWindowListAsync(WPARAM wParam,LPARAM lParam) {
int i;
MSG *msg=(MSG*)lParam;
- for(i=0;i<windowListCount;i++)
- if(windowList[i].hList==(HANDLE)wParam)
+ for (i=0;i<windowListCount;i++)
+ if (windowList[i].hList==(HANDLE)wParam)
PostMessage(windowList[i].hwnd,msg->message,msg->wParam,msg->lParam);
return 0;
}
|