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/msglog.cpp | |
parent | 5b6db3290cb9c9817cba126bd7aea798a610c31d (diff) |
tabsrmm: C++'11 iterators
Diffstat (limited to 'plugins/TabSRMM/src/msglog.cpp')
-rw-r--r-- | plugins/TabSRMM/src/msglog.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/msglog.cpp b/plugins/TabSRMM/src/msglog.cpp index 312913a269..ceff02c1b5 100644 --- a/plugins/TabSRMM/src/msglog.cpp +++ b/plugins/TabSRMM/src/msglog.cpp @@ -351,10 +351,8 @@ static void Build_RTF_Header(CMStringA &str, CTabBaseDlg *dat) }
// bbcode colors...
- for (i = 0; i < Utils::rtf_clrs.getCount(); i++) {
- auto &p = Utils::rtf_clrs[i];
- str.AppendFormat("\\red%u\\green%u\\blue%u;", GetRValue(p.clr), GetGValue(p.clr), GetBValue(p.clr));
- }
+ for (auto &p : Utils::rtf_clrs)
+ str.AppendFormat("\\red%u\\green%u\\blue%u;", GetRValue(p->clr), GetGValue(p->clr), GetBValue(p->clr));
// paragraph header
str.AppendFormat("}");
|