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/events.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'plugins/CloudFile/src/events.cpp') diff --git a/plugins/CloudFile/src/events.cpp b/plugins/CloudFile/src/events.cpp index df2e06ef4f..c38f89058c 100644 --- a/plugins/CloudFile/src/events.cpp +++ b/plugins/CloudFile/src/events.cpp @@ -9,12 +9,8 @@ int OnModulesLoaded(WPARAM, LPARAM) HookEvent(ME_OPT_INITIALISE, OnOptionsInitialized); // srfile - size_t count = Services.getCount(); - for (size_t i = 0; i < count; i++) { - CCloudService *service = Services[i]; - + for (auto &service : Services) HookEventObj(ME_FILEDLG_CANCELED, OnFileDialogCanceled, service); - } HookEvent(ME_CLIST_PREBUILDCONTACTMENU, OnPrebuildContactMenu); -- cgit v1.2.3