diff options
author | George Hazan <ghazan@miranda.im> | 2018-02-21 18:35:21 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-02-21 18:40:14 +0300 |
commit | 429c0d0524e7197a593209468fef530344f5ee05 (patch) | |
tree | 71df95fdf71c52a956de69b6f31f3a6528053442 /plugins/TabSRMM/src/generic_msghandlers.cpp | |
parent | 5b6db3290cb9c9817cba126bd7aea798a610c31d (diff) |
tabsrmm: C++'11 iterators
Diffstat (limited to 'plugins/TabSRMM/src/generic_msghandlers.cpp')
-rw-r--r-- | plugins/TabSRMM/src/generic_msghandlers.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/generic_msghandlers.cpp b/plugins/TabSRMM/src/generic_msghandlers.cpp index 785260ee4d..e9c5a0cf6c 100644 --- a/plugins/TabSRMM/src/generic_msghandlers.cpp +++ b/plugins/TabSRMM/src/generic_msghandlers.cpp @@ -557,8 +557,8 @@ void CTabBaseDlg::DM_InitRichEdit() LOGFONTA lf = m_pContainer->theme.logFonts[MSGFONTID_MESSAGEAREA]; inputcharcolor = m_pContainer->theme.fontColors[MSGFONTID_MESSAGEAREA]; - for (int i = 0; i < Utils::rtf_clrs.getCount(); i++) - if (Utils::rtf_clrs[i].clr == inputcharcolor) + for (auto &it : Utils::rtf_clrs) + if (it->clr == inputcharcolor) inputcharcolor = RGB(GetRValue(inputcharcolor), GetGValue(inputcharcolor), GetBValue(inputcharcolor) == 0 ? GetBValue(inputcharcolor) + 1 : GetBValue(inputcharcolor) - 1); cf2.dwMask = CFM_COLOR | CFM_FACE | CFM_CHARSET | CFM_SIZE | CFM_WEIGHT | CFM_BOLD | CFM_ITALIC; |