summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/msgdlgother.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-05-04 12:09:06 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-05-04 12:09:13 +0300
commit234af11634949fee3c5e16721641a046c971598a (patch)
treea6a2cddf294450de7eddd3a7449767efb54c2269 /plugins/TabSRMM/src/msgdlgother.cpp
parent1fedd3665b5fdb1772fe6bb85e6fb686eee58fd7 (diff)
tabSRMM:
- ANSI crutch removed; - LoadMsgDlgFont: useless parameter szMod removed; - wcscpy replaced with safer call of wcsncpy_s; - useless function LoadLogfont removed;
Diffstat (limited to 'plugins/TabSRMM/src/msgdlgother.cpp')
-rw-r--r--plugins/TabSRMM/src/msgdlgother.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/msgdlgother.cpp b/plugins/TabSRMM/src/msgdlgother.cpp
index 132a7babf3..ee45e05116 100644
--- a/plugins/TabSRMM/src/msgdlgother.cpp
+++ b/plugins/TabSRMM/src/msgdlgother.cpp
@@ -235,7 +235,7 @@ BOOL CMsgDialog::DoRtfToTags(CMStringW &pszText) const
return FALSE;
// used to filter out attributes which are already set for the default message input area font
- LOGFONTA lf = m_pContainer->m_theme.logFonts[MSGFONTID_MESSAGEAREA];
+ auto &lf = m_pContainer->m_theme.logFonts[MSGFONTID_MESSAGEAREA];
// create an index of colors in the module and map them to
// corresponding colors in the RTF color table
@@ -825,7 +825,7 @@ void CMsgDialog::LoadOwnAvatar()
void CMsgDialog::LoadSettings()
{
m_clrInputBG = m_pContainer->m_theme.inputbg;
- LoadLogfont(FONTSECTION_IM, MSGFONTID_MESSAGEAREA, nullptr, &m_clrInputFG, FONTMODULE);
+ LoadMsgDlgFont(FONTSECTION_IM, MSGFONTID_MESSAGEAREA, nullptr, &m_clrInputFG);
}
/////////////////////////////////////////////////////////////////////////////////////////