From 9613f96e6a6f96ad02a0fc926054132811ae2bb1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 3 Apr 2018 16:30:25 +0300 Subject: Accounts() : iterator for accounts --- plugins/QuickContacts/src/quickcontacts.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'plugins/QuickContacts/src') diff --git a/plugins/QuickContacts/src/quickcontacts.cpp b/plugins/QuickContacts/src/quickcontacts.cpp index 72489fc90d..629faddd9a 100644 --- a/plugins/QuickContacts/src/quickcontacts.cpp +++ b/plugins/QuickContacts/src/quickcontacts.cpp @@ -107,15 +107,9 @@ int ModulesLoaded(WPARAM, LPARAM) InitOptions(); // Get number of protocols - int pcount = 0; - PROTOACCOUNT** pdesc; - - Proto_EnumAccounts(&pcount, &pdesc); - - opts.num_protos = pcount; + Proto_EnumAccounts(&opts.num_protos, nullptr); // Add hotkey to multiple services - hasNewHotkeyModule = TRUE; HOTKEYDESC hkd = {}; -- cgit v1.2.3