summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-04-20 11:44:01 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-04-20 11:44:01 +0000
commit3e807a1b4ed2e9bcdf557660e0c1f8a4692747a7 (patch)
tree2c4359faf0ce768782be194f4cf6bc766504455f
parent8d72d5a048972f29c135f4c7fe8c0e8948bd0e07 (diff)
warnings fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@12963 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/SkypeWeb/src/skype_chatrooms.cpp54
-rw-r--r--protocols/SkypeWeb/src/skype_search.cpp2
2 files changed, 28 insertions, 28 deletions
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);