diff options
author | George Hazan <ghazan@miranda.im> | 2018-02-21 18:33:29 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-02-21 18:40:14 +0300 |
commit | e4e088d37070bab69b1457621706d65472874243 (patch) | |
tree | b031344561547208e567fa473e1640b302407a86 /plugins/SmileyAdd/src/smileyroutines.cpp | |
parent | ba75602b16e4b9b484c2c05f70c117f612c81e1d (diff) |
SmileyAdd: C++'11 iterators
Diffstat (limited to 'plugins/SmileyAdd/src/smileyroutines.cpp')
-rw-r--r-- | plugins/SmileyAdd/src/smileyroutines.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/SmileyAdd/src/smileyroutines.cpp b/plugins/SmileyAdd/src/smileyroutines.cpp index 2741cab5d6..199c5e4a2b 100644 --- a/plugins/SmileyAdd/src/smileyroutines.cpp +++ b/plugins/SmileyAdd/src/smileyroutines.cpp @@ -52,14 +52,14 @@ void LookupAllSmileys(SmileyPackType *smileyPack, SmileyPackCType *smileyCPack, int i = 0;
if (sml)
- for (int j=0; j < sml->getCount(); j++) {
- (*sml)[j].Find(tmpstr, smileys[i], false);
+ for (auto &it : *sml) {
+ it->Find(tmpstr, smileys[i], false);
i++;
}
if (smlc)
- for (int j=0; j < smlc->getCount(); j++) {
- (*smlc)[j].Find(tmpstr, smileys[i], false);
+ for (auto &it : *smlc) {
+ it->Find(tmpstr, smileys[i], false);
i++;
}
|