summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/transfers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CloudFile/src/transfers.cpp')
-rw-r--r--plugins/CloudFile/src/transfers.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/CloudFile/src/transfers.cpp b/plugins/CloudFile/src/transfers.cpp
index 376c5c5f74..7ffcc4e7ef 100644
--- a/plugins/CloudFile/src/transfers.cpp
+++ b/plugins/CloudFile/src/transfers.cpp
@@ -5,8 +5,7 @@ LIST<FileTransferParam> Transfers(1, HandleKeySortT);
INT_PTR CCloudService::SendFileInterceptor(WPARAM, LPARAM lParam)
{
CCSDATA *pccsd = (CCSDATA*)lParam;
- for (int i = 0; i < Services.getCount(); i++) {
- CCloudService *service = Services[i];
+ for (auto &service : Services) {
auto it = service->InterceptedContacts.find(pccsd->hContact);
if (it == service->InterceptedContacts.end())
return CALLSERVICE_NOTFOUND;