summaryrefslogtreecommitdiff
path: root/plugins/BasicHistory
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-07-25 23:10:36 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-07-25 23:10:36 +0300
commita411a7391bb879db8da398f067245a13c7fa7aee (patch)
tree4b2c76ca8bc0b43b1084b8234746810c3ef6c446 /plugins/BasicHistory
parent942c498d6e8901f751b088c0adfcb8f3fc67576c (diff)
major code cleaning of all font-related structures
Diffstat (limited to 'plugins/BasicHistory')
-rw-r--r--plugins/BasicHistory/src/Options.cpp8
1 files changed, 3 insertions, 5 deletions
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;