summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/fonts.cpp
diff options
context:
space:
mode:
authorMataes <mataes2007@gmail.com>2020-04-04 01:08:35 +0300
committerMataes <mataes2007@gmail.com>2020-04-04 01:08:35 +0300
commit28108cf449cb49c4f969f615032522badd071734 (patch)
treee99ee51220f1f1aab9207e8fb1a34cc221b74cee /plugins/NewStory/src/fonts.cpp
parent067cd1176e7b6e57107e3926ddaba3a7e7880949 (diff)
newstory: minor cleanup
Diffstat (limited to 'plugins/NewStory/src/fonts.cpp')
-rw-r--r--plugins/NewStory/src/fonts.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/NewStory/src/fonts.cpp b/plugins/NewStory/src/fonts.cpp
index 272a89723e..d3756b995c 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);
}