diff options
Diffstat (limited to 'plugins/Clist_modern/src')
-rw-r--r-- | plugins/Clist_modern/src/modern_clcopts.cpp | 4 | ||||
-rw-r--r-- | plugins/Clist_modern/src/modern_clistopts.cpp | 4 | ||||
-rw-r--r-- | plugins/Clist_modern/src/modern_skinopt.cpp | 7 |
3 files changed, 4 insertions, 11 deletions
diff --git a/plugins/Clist_modern/src/modern_clcopts.cpp b/plugins/Clist_modern/src/modern_clcopts.cpp index c37020b629..916d7d7839 100644 --- a/plugins/Clist_modern/src/modern_clcopts.cpp +++ b/plugins/Clist_modern/src/modern_clcopts.cpp @@ -265,8 +265,7 @@ int ClcOptInit(WPARAM wParam,LPARAM lParam) if (MirandaExiting())
return 0;
- OPTIONSDIALOGPAGE odp = { 0 };
- odp.cbSize = sizeof(odp);
+ OPTIONSDIALOGPAGE odp = { sizeof(odp) };
odp.hInstance = g_hInst;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_CLC);
odp.pszTitle = LPGEN("Contact List");
@@ -290,7 +289,6 @@ int ClcOptInit(WPARAM wParam,LPARAM lParam) odp.flags = ODPF_BOLDGROUPS;
Options_AddPage(wParam, &odp);
}
-
return 0;
}
diff --git a/plugins/Clist_modern/src/modern_clistopts.cpp b/plugins/Clist_modern/src/modern_clistopts.cpp index 63eb97c90d..6b234ee068 100644 --- a/plugins/Clist_modern/src/modern_clistopts.cpp +++ b/plugins/Clist_modern/src/modern_clistopts.cpp @@ -965,8 +965,7 @@ static row_opt_items[] = int CListOptInit(WPARAM wParam,LPARAM lParam)
{
- OPTIONSDIALOGPAGE odp = { 0 };
- odp.cbSize = sizeof(odp);
+ OPTIONSDIALOGPAGE odp = { sizeof(odp) };
odp.position = -200000000;
odp.hInstance = g_hInst;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_ITEMS);
@@ -980,6 +979,5 @@ int CListOptInit(WPARAM wParam,LPARAM lParam) odp.pfnDlgProc = row_opt_items[i].wnd_proc;
Options_AddPage(wParam, &odp);
}
-
return 0;
}
diff --git a/plugins/Clist_modern/src/modern_skinopt.cpp b/plugins/Clist_modern/src/modern_skinopt.cpp index 8f0b01ddce..5d4003185e 100644 --- a/plugins/Clist_modern/src/modern_skinopt.cpp +++ b/plugins/Clist_modern/src/modern_skinopt.cpp @@ -45,12 +45,9 @@ INT_PTR CALLBACK DlgSkinOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara int SkinOptInit(WPARAM wParam, LPARAM lParam)
{
- OPTIONSDIALOGPAGE odp;
- if ( !g_CluiData.fDisableSkinEngine )
- {
+ if ( !g_CluiData.fDisableSkinEngine) {
//Tabbed settings
- ZeroMemory( &odp, sizeof( odp ));
- odp.cbSize = sizeof( odp );
+ OPTIONSDIALOGPAGE odp = { sizeof(odp) };
odp.position = -200000000;
odp.hInstance = g_hInst;
odp.pfnDlgProc = DlgSkinOpts;
|