summaryrefslogtreecommitdiff
path: root/plugins/MirandaG15
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-04-15 15:47:29 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-04-15 15:47:29 +0000
commita697754351436b6d0066b77b0fd71aeb8c45be3d (patch)
treec2821a76e17eb003fe14b82b91ccb8b88dbe3adc /plugins/MirandaG15
parent2e3b0d5d40f1113887bd67e6ba227b780c4293cd (diff)
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
Diffstat (limited to 'plugins/MirandaG15')
-rw-r--r--plugins/MirandaG15/src/CConfig.cpp13
1 files changed, 2 insertions, 11 deletions
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;
}