summaryrefslogtreecommitdiff
path: root/plugins/SmileyAdd/src/smileyroutines.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SmileyAdd/src/smileyroutines.cpp')
-rw-r--r--plugins/SmileyAdd/src/smileyroutines.cpp8
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++;
}