summaryrefslogtreecommitdiff
path: root/plugins/SMS/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SMS/src')
-rw-r--r--plugins/SMS/src/SMS_svc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/SMS/src/SMS_svc.cpp b/plugins/SMS/src/SMS_svc.cpp
index 330c089f08..ee3b8dc53c 100644
--- a/plugins/SMS/src/SMS_svc.cpp
+++ b/plugins/SMS/src/SMS_svc.cpp
@@ -8,9 +8,9 @@ int LoadServices(void)
pszServiceFunctionName = szServiceFunction + PROTOCOL_NAME_LEN;
// Service creation
- for (size_t i = 0; i < _countof(siPluginServices); i++) {
- memcpy(pszServiceFunctionName, siPluginServices[i].lpszName, (mir_strlen(siPluginServices[i].lpszName) + 1));
- CreateServiceFunction(szServiceFunction, (MIRANDASERVICE)siPluginServices[i].lpFunc);
+ for (auto &it : siPluginServices) {
+ memcpy(pszServiceFunctionName, it.lpszName, (mir_strlen(it.lpszName) + 1));
+ CreateServiceFunction(szServiceFunction, (MIRANDASERVICE)it.lpFunc);
}
return 0;
}