summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/chat/clist.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-29 14:19:12 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-29 14:19:12 +0000
commitc1840425166576b1cf187076a9344a78a20375b6 (patch)
tree7c7e1d66219c7b2ed6b57a397ac67b3541aa127e /plugins/TabSRMM/chat/clist.cpp
parentd80ee102fba0f99ad2ab0e0e734267f76b3b639e (diff)
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@686 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/chat/clist.cpp')
-rw-r--r--plugins/TabSRMM/chat/clist.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/TabSRMM/chat/clist.cpp b/plugins/TabSRMM/chat/clist.cpp
index 540997aa87..cd19765bdf 100644
--- a/plugins/TabSRMM/chat/clist.cpp
+++ b/plugins/TabSRMM/chat/clist.cpp
@@ -55,13 +55,13 @@ static HANDLE Clist_GroupExists(TCHAR *tszGroup)
if (!result) {
match = (!_tcscmp(tszGroup, &dbv.ptszVal[1]) && (lstrlen(tszGroup) == lstrlen(&dbv.ptszVal[1])));
DBFreeVariant(&dbv);
- if(match)
+ if (match)
return((HANDLE)(i + 1));
}
i++;
}
while(result == 0);
- return(0);
+ return 0;
}
HANDLE CList_AddRoom(const char* pszModule, const TCHAR* pszRoom, const TCHAR* pszDisplayName, int iType)
@@ -170,9 +170,9 @@ int CList_RoomDoubleclicked(WPARAM wParam, LPARAM lParam)
fCreate = true;
ShowRoom(si, WINDOW_VISIBLE, TRUE);
- if(lParam && fCreate) {
+ if (lParam && fCreate) {
SendMessage(si->hWnd, DM_ACTIVATEME, 0, 0);
- if(si->dat)
+ if (si->dat)
SetForegroundWindow(si->dat->pContainer->hwnd);
}
}
@@ -260,10 +260,10 @@ void CList_CreateGroup(TCHAR* group)
g_Settings.hGroup = Clist_GroupExists(group);
- if(g_Settings.hGroup == 0) {
+ if (g_Settings.hGroup == 0) {
g_Settings.hGroup = (HANDLE)CallService(MS_CLIST_GROUPCREATE, 0, (LPARAM)group);
- if(g_Settings.hGroup) {
+ if (g_Settings.hGroup) {
CallService(MS_CLUI_GROUPADDED, (WPARAM)g_Settings.hGroup, 0);
CallService(MS_CLIST_GROUPSETEXPANDED, (WPARAM)g_Settings.hGroup, 1);
}