From 234af11634949fee3c5e16721641a046c971598a Mon Sep 17 00:00:00 2001
From: George Hazan <ghazan@miranda.im>
Date: Mon, 4 May 2020 12:09:06 +0300
Subject: tabSRMM:

- ANSI crutch removed;
- LoadMsgDlgFont: useless parameter szMod removed;
- wcscpy replaced with safer call of wcsncpy_s;
- useless function LoadLogfont removed;
---
 plugins/TabSRMM/src/msgdlgother.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'plugins/TabSRMM/src/msgdlgother.cpp')

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);
 }
 
 /////////////////////////////////////////////////////////////////////////////////////////
-- 
cgit v1.2.3