diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-13 17:26:45 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-13 17:26:45 +0000 |
commit | 5e686292c537275c8ea1399f311c082d905e8a63 (patch) | |
tree | 88a4f3921ff70323775f3329c8820a0fe947d74f /src/modules/utils/windowlist.cpp | |
parent | 90c154b4be566ec4a804217d0f1e50fb1e259b72 (diff) |
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@398 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/utils/windowlist.cpp')
-rw-r--r-- | src/modules/utils/windowlist.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/utils/windowlist.cpp b/src/modules/utils/windowlist.cpp index fea07ac5fb..e67f13c5e8 100644 --- a/src/modules/utils/windowlist.cpp +++ b/src/modules/utils/windowlist.cpp @@ -42,7 +42,7 @@ 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) {
+ 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;
@@ -54,7 +54,7 @@ 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)
+ if (windowList[i].hContact == (HANDLE)lParam && windowList[i].hList == (HANDLE)wParam)
return (INT_PTR)windowList[i].hwnd;
return (INT_PTR)(HWND)NULL;
}
@@ -64,7 +64,7 @@ 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)
+ if (windowList[i].hList == (HANDLE)wParam)
SendMessage(windowList[i].hwnd,msg->message,msg->wParam,msg->lParam);
return 0;
}
@@ -74,7 +74,7 @@ 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)
+ if (windowList[i].hList == (HANDLE)wParam)
PostMessage(windowList[i].hwnd,msg->message,msg->wParam,msg->lParam);
return 0;
}
|