summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu/src/links.cpp
diff options
context:
space:
mode:
authorGoraf <22941576+Goraf@users.noreply.github.com>2018-01-08 22:48:19 +0100
committerGoraf <22941576+Goraf@users.noreply.github.com>2018-01-19 01:39:33 +0100
commitdb084380729ecb18021aa0a5b3074c1faffb18c1 (patch)
tree91c49c311598f0abc294f4dfb8c7ea625f2085d6 /protocols/Gadu-Gadu/src/links.cpp
parent44a8248b1b19375130144a783d1758e1f83d3c88 (diff)
Gadu-Gadu: code cleaning
Diffstat (limited to 'protocols/Gadu-Gadu/src/links.cpp')
-rw-r--r--protocols/Gadu-Gadu/src/links.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Gadu-Gadu/src/links.cpp b/protocols/Gadu-Gadu/src/links.cpp
index 9d720404dd..6caf12722e 100644
--- a/protocols/Gadu-Gadu/src/links.cpp
+++ b/protocols/Gadu-Gadu/src/links.cpp
@@ -39,8 +39,6 @@ static INT_PTR gg_menuchoose(WPARAM wParam, LPARAM lParam)
static INT_PTR gg_parselink(WPARAM, LPARAM lParam)
{
char *arg = (char*)lParam;
- uin_t uin;
- int items = 0;
if (g_Instances.getCount() == 0)
return 0;
@@ -54,13 +52,14 @@ static INT_PTR gg_parselink(WPARAM, LPARAM lParam)
return 1;
for (++arg; *arg == '/'; ++arg);
- uin = atoi(arg);
+ uin_t uin = atoi(arg);
if (!uin)
return 1;
GGPROTO *gg = nullptr;
- for (int i=0; i < g_Instances.getCount(); i++) {
+ int items = 0;
+ for (int i = 0; i < g_Instances.getCount(); i++) {
gg = g_Instances[i];
if (gg->m_iStatus > ID_STATUS_OFFLINE) {
@@ -89,6 +88,7 @@ static INT_PTR gg_parselink(WPARAM, LPARAM lParam)
MCONTACT hContact = gg->getcontact(uin, 1, 0, nullptr);
if (hContact != NULL)
CallService(MS_MSG_SENDMESSAGE, hContact, 0);
+
return 0;
}