From 526be8c3f2ec7cf54cfec03052ac3b757a346191 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 13 Nov 2014 20:44:49 +0000 Subject: minor fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@10986 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/clist/genmenu.cpp | 3 +-- src/modules/fonts/FontOptions.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/modules/clist/genmenu.cpp b/src/modules/clist/genmenu.cpp index 3cf0a71c6d..bb5e533ff4 100644 --- a/src/modules/clist/genmenu.cpp +++ b/src/modules/clist/genmenu.cpp @@ -718,8 +718,7 @@ PMO_IntMenuItem MO_AddOldNewMenuItem(HANDLE menuobjecthandle, PMO_MenuItem pmi) if (oldroot == NULL) { //not found, creating root - TMO_MenuItem tmi = { 0 }; - tmi = *pmi; + TMO_MenuItem tmi = *pmi; tmi.flags |= CMIF_ROOTHANDLE; tmi.ownerdata = 0; tmi.root = NULL; diff --git a/src/modules/fonts/FontOptions.cpp b/src/modules/fonts/FontOptions.cpp index 2569439869..20fb53871a 100644 --- a/src/modules/fonts/FontOptions.cpp +++ b/src/modules/fonts/FontOptions.cpp @@ -1041,8 +1041,7 @@ static INT_PTR CALLBACK DlgProcLogOptions(HWND hwndDlg, UINT msg, WPARAM wParam, FSUIListItemData *itemData = (FSUIListItemData *)SendDlgItemMessage(hwndDlg, IDC_FONTLIST, LB_GETITEMDATA, selItems[0], 0); EffectInternal& E = effect_id_list_w2[itemData->effect_id]; - FONTEFFECT es = { 0 }; - es = E.value; + FONTEFFECT es = E.value; if (IDOK == DialogBoxParam(hInst, MAKEINTRESOURCE(IDD_CHOOSE_FONT_EFFECT), hwndDlg, ChooseEffectDlgProc, (LPARAM)&es)) { for (int i=0; i < selCount; i++) { FSUIListItemData *itemData = (FSUIListItemData *)SendDlgItemMessage(hwndDlg, IDC_FONTLIST, LB_GETITEMDATA, selItems[i], 0); -- cgit v1.2.3