From a411a7391bb879db8da398f067245a13c7fa7aee Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 25 Jul 2018 23:10:36 +0300 Subject: major code cleaning of all font-related structures --- plugins/Weather/src/weather_mwin.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'plugins/Weather/src') diff --git a/plugins/Weather/src/weather_mwin.cpp b/plugins/Weather/src/weather_mwin.cpp index 7208b267df..9c5e098dfd 100644 --- a/plugins/Weather/src/weather_mwin.cpp +++ b/plugins/Weather/src/weather_mwin.cpp @@ -316,8 +316,7 @@ void InitMwin(void) wndclass.lpszClassName = L"WeatherFrame"; RegisterClass(&wndclass); - ColourIDW colourid = { 0 }; - colourid.cbSize = sizeof(ColourIDW); + ColourIDW colourid = {}; mir_strcpy(colourid.dbSettingsGroup, WEATHERPROTONAME); mir_strcpy(colourid.setting, "ColorMwinFrame"); mir_wstrcpy(colourid.name, LPGENW("Frame Background")); @@ -325,13 +324,12 @@ void InitMwin(void) colourid.defcolour = GetSysColor(COLOR_3DFACE); g_plugin.addColor(&colourid); - FontIDW fontid = { 0 }; - fontid.cbSize = sizeof(FontIDW); + FontIDW fontid = {}; fontid.flags = FIDF_ALLOWREREGISTER | FIDF_DEFAULTVALID; mir_strcpy(fontid.dbSettingsGroup, WEATHERPROTONAME); mir_wstrcpy(fontid.group, _A2W(WEATHERPROTONAME)); mir_wstrcpy(fontid.name, LPGENW("Frame Font")); - mir_strcpy(fontid.prefix, "fnt0"); + mir_strcpy(fontid.setting, "fnt0"); HDC hdc = GetDC(nullptr); fontid.deffontsettings.size = -13; @@ -345,7 +343,7 @@ void InitMwin(void) fontid.deffontsettings.style = DBFONTF_BOLD; mir_wstrcpy(fontid.name, LPGENW("Frame Title Font")); - mir_strcpy(fontid.prefix, "fnt1"); + mir_strcpy(fontid.setting, "fnt1"); g_plugin.addFont(&fontid); for (auto &hContact : Contacts(WEATHERPROTONAME)) -- cgit v1.2.3