From 6fad3235de6bec045fec19a7265e19e880ac84e2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 30 Jul 2017 17:30:39 +0300 Subject: Hotkeys: code cleaning --- plugins/UserInfoEx/src/svc_refreshci.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'plugins/UserInfoEx/src/svc_refreshci.cpp') diff --git a/plugins/UserInfoEx/src/svc_refreshci.cpp b/plugins/UserInfoEx/src/svc_refreshci.cpp index f9b4da5021..4b26516ad1 100644 --- a/plugins/UserInfoEx/src/svc_refreshci.cpp +++ b/plugins/UserInfoEx/src/svc_refreshci.cpp @@ -875,11 +875,10 @@ void SvcRefreshContactInfoLoadModule(void) HookEvent(ME_SYSTEM_PRESHUTDOWN, OnPreShutdown); HookEvent(ME_DB_CONTACT_ADDED, OnContactAdded); - HOTKEYDESC hk = { 0 }; - hk.cbSize = sizeof(HOTKEYDESC); - hk.pszSection = MODNAME; + HOTKEYDESC hk = {}; hk.pszName = "RefreshContactDetails"; - hk.pszDescription = LPGEN("Refresh contact details"); + hk.szSection.a = MODNAME; + hk.szDescription.a = LPGEN("Refresh contact details"); hk.pszService = MS_USERINFO_REFRESH; Hotkey_Register(&hk); } -- cgit v1.2.3