summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/options.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-02-21 00:05:54 +0300
committeraunsane <aunsane@gmail.com>2018-02-21 00:05:54 +0300
commitb1b10b4095c4e569cfeed632c2cfa08be766a01b (patch)
tree490d3f14e2a113257035393aecda6dda01e25ecc /plugins/CloudFile/src/options.cpp
parentabf1919b649645aa20ce95903d7a42a1c81a2e45 (diff)
Implement service that returns the list of available CloudFile services (#1144)
Diffstat (limited to 'plugins/CloudFile/src/options.cpp')
-rw-r--r--plugins/CloudFile/src/options.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/CloudFile/src/options.cpp b/plugins/CloudFile/src/options.cpp
index e4c8370691..3c7850ee22 100644
--- a/plugins/CloudFile/src/options.cpp
+++ b/plugins/CloudFile/src/options.cpp
@@ -25,10 +25,7 @@ void COptionsMain::OnInitDialog()
int iItem = m_defaultService.AddString(TranslateT("None"));
m_defaultService.SetCurSel(iItem);
- size_t count = Services.getCount();
- for (size_t i = 0; i < count; i++) {
- CCloudService *service = Services[i];
-
+ for (auto &service : Services) {
iItem = m_defaultService.AddString(mir_wstrdup(service->GetUserName()), (LPARAM)service);
if (!mir_strcmpi(service->GetAccountName(), defaultService))
m_defaultService.SetCurSel(iItem);