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/Clist_modern/src/modern_keyboard.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'plugins/Clist_modern/src/modern_keyboard.cpp') diff --git a/plugins/Clist_modern/src/modern_keyboard.cpp b/plugins/Clist_modern/src/modern_keyboard.cpp index 76d5451df9..b1a05f50df 100644 --- a/plugins/Clist_modern/src/modern_keyboard.cpp +++ b/plugins/Clist_modern/src/modern_keyboard.cpp @@ -45,25 +45,24 @@ int InitSkinHotKeys(void) CreateServiceFunction("CLIST/HK/CloseMiranda", hkCloseMiranda); CreateServiceFunction("CLIST/HK/RestoreStatus", hkRestoreStatus); - HOTKEYDESC shk = { 0 }; - shk.cbSize = sizeof(shk); + HOTKEYDESC shk = {}; shk.dwFlags = HKD_UNICODE; - shk.pwszDescription = LPGENW("Close Miranda"); + shk.szSection.w = LPGENW("Main"); + shk.szDescription.w = LPGENW("Close Miranda"); shk.pszName = "CloseMiranda"; - shk.pwszSection = LPGENW("Main"); shk.pszService = "CLIST/HK/CloseMiranda"; Hotkey_Register(&shk); - shk.pwszDescription = LPGENW("Restore last status"); + shk.szSection.w = LPGENW("Status"); + shk.szDescription.w = LPGENW("Restore last status"); shk.pszName = "RestoreLastStatus"; - shk.pwszSection = LPGENW("Status"); shk.pszService = "CLIST/HK/RestoreStatus"; Hotkey_Register(&shk); - shk.pwszDescription = LPGENW("Show/Hide offline users"); + shk.szSection.w = LPGENW("Main"); + shk.szDescription.w = LPGENW("Show/Hide offline users"); shk.pszName = "ShowHideOfflineUsers"; - shk.pwszSection = LPGENW("Main"); shk.pszService = MS_CLIST_TOGGLEHIDEOFFLINE; Hotkey_Register(&shk); return 0; -- cgit v1.2.3