summaryrefslogtreecommitdiff
path: root/plugins/YAPP/src/services.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/YAPP/src/services.cpp')
-rw-r--r--plugins/YAPP/src/services.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/YAPP/src/services.cpp b/plugins/YAPP/src/services.cpp
index 71f68a7b05..87ef273df9 100644
--- a/plugins/YAPP/src/services.cpp
+++ b/plugins/YAPP/src/services.cpp
@@ -381,9 +381,9 @@ static INT_PTR CreateClassPopup(WPARAM wParam, LPARAM lParam)
if (wParam)
pc = (POPUPCLASS *)wParam;
else {
- for (int i = 0; i < arClasses.getCount(); i++) {
- if (mir_strcmp(arClasses[i]->pszName, pdc->pszClassName) == 0) {
- pc = arClasses[i];
+ for (auto &it : arClasses) {
+ if (mir_strcmp(it->pszName, pdc->pszClassName) == 0) {
+ pc = it;
break;
}
}
@@ -446,6 +446,6 @@ void DeinitServices()
{
DestroyHookableEvent(hEventNotify);
- for (int i = 0; i < arClasses.getCount(); i++)
- FreePopupClass(arClasses[i]);
+ for (auto &it : arClasses)
+ FreePopupClass(it);
}