diff options
author | George Hazan <ghazan@miranda.im> | 2020-04-04 14:31:19 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-04-04 14:31:19 +0300 |
commit | db915e4f76078302d66cff79ed9a3eb63024a261 (patch) | |
tree | 44e432ab17bb3a25682c5190e31d55cb09fb7952 /plugins/NewStory/src/fonts.cpp | |
parent | 40269f18dd845b95093877f479f179f1c59a101a (diff) |
code cleaning
Diffstat (limited to 'plugins/NewStory/src/fonts.cpp')
-rw-r--r-- | plugins/NewStory/src/fonts.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/NewStory/src/fonts.cpp b/plugins/NewStory/src/fonts.cpp index fcbb90748e..eb389738aa 100644 --- a/plugins/NewStory/src/fonts.cpp +++ b/plugins/NewStory/src/fonts.cpp @@ -33,10 +33,10 @@ MyFontID fonts[] = int evtFontsChanged(WPARAM, LPARAM) { - for (auto& it : colors) + for (auto &it : colors) it.cl = Colour_Get(MODULENAME, it.szName); - for (auto& it : fonts) { + for (auto &it : fonts) { it.cl = (COLORREF)Font_Get(MODULENAME, it.szName, &it.lf); DeleteObject(it.hfnt); @@ -58,7 +58,7 @@ void InitFonts() strncpy_s(cid.group, MODULENAME, _TRUNCATE); strncpy_s(cid.dbSettingsGroup, MODULENAME, _TRUNCATE); - for (auto& it : colors) { + for (auto &it : colors) { cid.order = int(&it - colors); strncpy_s(cid.name, it.szName, _TRUNCATE); strncpy_s(cid.setting, it.szSetting, _TRUNCATE); @@ -71,7 +71,7 @@ void InitFonts() strncpy_s(fontid.group, MODULENAME, _TRUNCATE); strncpy_s(fontid.dbSettingsGroup, MODULENAME, _TRUNCATE); - for (auto& it : fonts) { + for (auto &it : fonts) { fontid.order = int(&it - fonts); strncpy_s(fontid.name, it.szName, _TRUNCATE); strncpy_s(fontid.setting, it.szSetting, _TRUNCATE); @@ -84,6 +84,6 @@ void InitFonts() void DestroyFonts() { - for (auto& it : fonts) + for (auto &it : fonts) DeleteObject(it.hfnt); } |