diff options
author | George Hazan <george.hazan@gmail.com> | 2013-06-29 19:52:30 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-06-29 19:52:30 +0000 |
commit | 0d9532a3a3f150e6899d85166b8636332161d9af (patch) | |
tree | a1d4275a65f357098728bdcbd9bd3d55b3398539 /plugins/Clist_nicer/src/clui.cpp | |
parent | de5dce707cc60ace5b92d2ac61914c590cb9680b (diff) |
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@5182 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/src/clui.cpp')
-rw-r--r-- | plugins/Clist_nicer/src/clui.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/Clist_nicer/src/clui.cpp b/plugins/Clist_nicer/src/clui.cpp index b76cd24a80..1c6f4e2839 100644 --- a/plugins/Clist_nicer/src/clui.cpp +++ b/plugins/Clist_nicer/src/clui.cpp @@ -215,8 +215,7 @@ static int CreateCLC(HWND parent) SetButtonToSkinned();
{
- DWORD flags;
- CLISTFrame Frame;
+ CLISTFrame Frame = { 0 };
memset(&Frame, 0, sizeof(Frame));
Frame.cbSize = sizeof(CLISTFrame);
Frame.hWnd = pcli->hwndContactTree;
@@ -234,11 +233,11 @@ static int CreateCLC(HWND parent) * ugly, but working hack. Prevent that annoying little scroll bar from appearing in the "My Contacts" title bar
*/
- flags = (DWORD)CallService(MS_CLIST_FRAMES_GETFRAMEOPTIONS, MAKEWPARAM(FO_FLAGS, hFrameContactTree), 0);
+ DWORD flags = (DWORD)CallService(MS_CLIST_FRAMES_GETFRAMEOPTIONS, MAKEWPARAM(FO_FLAGS, hFrameContactTree), 0);
flags |= F_VISIBLE;
CallService(MS_CLIST_FRAMES_SETFRAMEOPTIONS, MAKEWPARAM(FO_FLAGS, hFrameContactTree), flags);
}
- return(0);
+ return 0;
}
static int CluiModulesLoaded(WPARAM wParam, LPARAM lParam)
@@ -1777,10 +1776,10 @@ buttons_done: case WM_CLOSE:
if (SETTING_WINDOWSTYLE_DEFAULT == cfg::getByte("CLUI", "WindowStyle", SETTING_WINDOWSTYLE_DEFAULT) && !cfg::getByte("CList", "AlwaysHideOnTB", 0)) {
PostMessage(hwnd, WM_SYSCOMMAND, SC_MINIMIZE, 0);
- return(0);
+ return 0;
}
pcli->pfnShowHide(0, 0);
- return(0);
+ return 0;
case CLUIINTM_REDRAW:
if (show_on_first_autosize) {
|