From 3e807a1b4ed2e9bcdf557660e0c1f8a4692747a7 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Mon, 20 Apr 2015 11:44:01 +0000 Subject: warnings fix git-svn-id: http://svn.miranda-ng.org/main/trunk@12963 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_chatrooms.cpp | 54 +++++++++++++++--------------- protocols/SkypeWeb/src/skype_search.cpp | 2 +- 2 files changed, 28 insertions(+), 28 deletions(-) (limited to 'protocols/SkypeWeb') diff --git a/protocols/SkypeWeb/src/skype_chatrooms.cpp b/protocols/SkypeWeb/src/skype_chatrooms.cpp index 6d17790e8d..80a38fbbee 100644 --- a/protocols/SkypeWeb/src/skype_chatrooms.cpp +++ b/protocols/SkypeWeb/src/skype_chatrooms.cpp @@ -194,33 +194,33 @@ int CSkypeProto::OnGroupChatMenuHook(WPARAM, LPARAM lParam) GCMENUITEMS *gcmi = (GCMENUITEMS*)lParam; if (stricmp(gcmi->pszModule, m_szModuleName)) return 0; - if (gcmi->Type == MENU_ON_LOG) - { - static const struct gc_item Items[] = - { - { LPGENT("&Invite user..."), 10, MENU_ITEM, FALSE }, - { LPGENT("&Leave chat session"), 20, MENU_ITEM, FALSE } - }; - gcmi->nItems = SIZEOF(Items); - gcmi->Item = (gc_item*)Items; - } - else if (gcmi->Type == MENU_ON_NICKLIST) - { - if (IsMe(_T2A(gcmi->pszUID))) - { - gcmi->nItems = 0; - gcmi->Item = NULL; - } - else - { - static const struct gc_item Items[] = - { - { LPGENT("Kick &user"), 10, MENU_ITEM, FALSE } - }; - gcmi->nItems = SIZEOF(Items); - gcmi->Item = (gc_item*)Items; - } - } + if (gcmi->Type == MENU_ON_LOG) + { + static const struct gc_item Items[] = + { + { LPGENT("&Invite user..."), 10, MENU_ITEM, FALSE }, + { LPGENT("&Leave chat session"), 20, MENU_ITEM, FALSE } + }; + gcmi->nItems = SIZEOF(Items); + gcmi->Item = (gc_item*)Items; + } + else if (gcmi->Type == MENU_ON_NICKLIST) + { + if (IsMe(_T2A(gcmi->pszUID))) + { + gcmi->nItems = 0; + gcmi->Item = NULL; + } + else + { + static const struct gc_item Items[] = + { + { LPGENT("Kick &user"), 10, MENU_ITEM, FALSE } + }; + gcmi->nItems = SIZEOF(Items); + gcmi->Item = (gc_item*)Items; + } + } return 0; diff --git a/protocols/SkypeWeb/src/skype_search.cpp b/protocols/SkypeWeb/src/skype_search.cpp index 10d2ccbc88..1c964a7256 100644 --- a/protocols/SkypeWeb/src/skype_search.cpp +++ b/protocols/SkypeWeb/src/skype_search.cpp @@ -54,7 +54,7 @@ void CSkypeProto::OnSearch(const NETLIBHTTPREQUEST *response) return; } - JSONNODE *items = json_as_array(root), *item, *node; + JSONNODE *items = json_as_array(root); for (size_t i = 0; i < json_size(items); i++) { JSONNODE *item = json_at(items, i); -- cgit v1.2.3