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 --- protocols/Twitter/src/proto.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Twitter/src/proto.cpp') diff --git a/protocols/Twitter/src/proto.cpp b/protocols/Twitter/src/proto.cpp index 19bc5452e7..4153006ee9 100644 --- a/protocols/Twitter/src/proto.cpp +++ b/protocols/Twitter/src/proto.cpp @@ -46,11 +46,11 @@ TwitterProto::TwitterProto(const char *proto_name, const wchar_t *username) : char text[512]; mir_snprintf(text, "%s/Tweet", m_szModuleName); - HOTKEYDESC hkd = { sizeof(hkd) }; + HOTKEYDESC hkd = {}; hkd.pszName = text; hkd.pszService = text; - hkd.pszSection = m_szModuleName; // Section title; TODO: use username? - hkd.pszDescription = "Send Tweet"; + hkd.szSection.a = m_szModuleName; // Section title; TODO: use username? + hkd.szDescription.a = "Send Tweet"; Hotkey_Register(&hkd); // set Tokens and stuff -- cgit v1.2.3