From a697754351436b6d0066b77b0fd71aeb8c45be3d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 15 Apr 2015 15:47:29 +0000 Subject: after commit #12797 field OPTIONSDIALOGPAGE::cbSize became an atavism, and therefore removed git-svn-id: http://svn.miranda-ng.org/main/trunk@12840 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirandaG15/src/CConfig.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'plugins/MirandaG15/src') diff --git a/plugins/MirandaG15/src/CConfig.cpp b/plugins/MirandaG15/src/CConfig.cpp index 22a14ac5a9..70b40b89ba 100644 --- a/plugins/MirandaG15/src/CConfig.cpp +++ b/plugins/MirandaG15/src/CConfig.cpp @@ -249,44 +249,35 @@ void CConfig::OnConnectionChanged() { int CConfig::InitOptionsDialog(WPARAM wParam, LPARAM lParam) { - OPTIONSDIALOGPAGE odp; - memset(&odp, 0, sizeof(odp)); - odp.cbSize = sizeof(odp); + OPTIONSDIALOGPAGE odp = { 0 }; odp.position = 847000000; odp.hInstance = hInstance; odp.pszGroup = LPGEN("MirandaG15"); - odp.flags = ODPF_BOLDGROUPS; + odp.flags = ODPF_BOLDGROUPS; // --------------------- odp.pszTemplate = MAKEINTRESOURCEA(IDD_FONTS); odp.pszTitle = LPGEN("Appearance"); odp.pszGroup = LPGEN("MirandaG15"); odp.pfnDlgProc = CConfig::AppearanceDlgProc; - Options_AddPage(wParam, &odp); // --------------------- - odp.pszTemplate = MAKEINTRESOURCEA(IDD_NOTIFICATIONS); odp.pszTitle = LPGEN("Notifications"); odp.pfnDlgProc = CConfig::NotificationsDlgProc; - Options_AddPage(wParam, &odp); // --------------------- - odp.pszTemplate = MAKEINTRESOURCEA(IDD_CHAT); odp.pszTitle = LPGEN("Chat sessions"); odp.pfnDlgProc = CConfig::ChatDlgProc; - Options_AddPage(wParam, &odp); // --------------------- - odp.pszTemplate = MAKEINTRESOURCEA(IDD_CLIST); odp.pszTitle = LPGEN("Contact list"); odp.pfnDlgProc = CConfig::ContactlistDlgProc; - Options_AddPage(wParam, &odp); return 0; } -- cgit v1.2.3