From b1b10b4095c4e569cfeed632c2cfa08be766a01b Mon Sep 17 00:00:00 2001 From: aunsane Date: Wed, 21 Feb 2018 00:05:54 +0300 Subject: Implement service that returns the list of available CloudFile services (#1144) --- plugins/CloudFile/src/options.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/CloudFile/src/options.cpp') 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); -- cgit v1.2.3