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/BasicHistory/src/Options.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'plugins/BasicHistory/src/Options.cpp') diff --git a/plugins/BasicHistory/src/Options.cpp b/plugins/BasicHistory/src/Options.cpp index da971082be..293708c2b6 100644 --- a/plugins/BasicHistory/src/Options.cpp +++ b/plugins/BasicHistory/src/Options.cpp @@ -231,11 +231,9 @@ const int g_hotkeysSize = _countof(g_HotkeyOptionsList); void Options::Load(void) { - FontIDW fid = { 0 }; - ColourIDW cid = { 0 }; + FontIDW fid = {}; + ColourIDW cid = {}; HOTKEYDESC hid = {}; - fid.cbSize = sizeof(FontIDW); - cid.cbSize = sizeof(ColourIDW); strncpy_s(fid.dbSettingsGroup, "BasicHistory_Fonts", _TRUNCATE); wcsncpy_s(fid.backgroundGroup, L"History", _TRUNCATE); wcsncpy_s(fid.group, LPGENW("History"), _TRUNCATE); @@ -246,7 +244,7 @@ void Options::Load(void) fid.deffontsettings.colour = g_FontOptionsList[i].defColour; fid.deffontsettings.style = g_FontOptionsList[i].defStyle; fid.deffontsettings.charset = DEFAULT_CHARSET; - mir_snprintf(fid.prefix, _countof(fid.prefix), "Font%d", i); + mir_snprintf(fid.setting, _countof(fid.setting), "Font%d", i); wcsncpy_s(fid.name, g_FontOptionsList[i].szDescr, _TRUNCATE); wcsncpy_s(fid.backgroundName, g_FontOptionsList[i].szBackgroundName, _TRUNCATE); fid.flags = FIDF_DEFAULTVALID | FIDF_CLASSGENERAL | g_FontOptionsList[i].flags; -- cgit v1.2.3