summaryrefslogtreecommitdiff
path: root/plugins/SimpleStatusMsg
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-03-17 22:11:51 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-03-17 22:11:59 +0300
commit3ad5334f17119c9ae010d5059f5cfb1831c9ddbd (patch)
tree1d76618499baee7cf217c97dfe2045b467d20a0a /plugins/SimpleStatusMsg
parentf632783f27da5dd0ed3513bbee6182ea8af30afe (diff)
more warning fixes
Diffstat (limited to 'plugins/SimpleStatusMsg')
-rw-r--r--plugins/SimpleStatusMsg/src/main.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/SimpleStatusMsg/src/main.cpp b/plugins/SimpleStatusMsg/src/main.cpp
index c373c84401..0a9807348d 100644
--- a/plugins/SimpleStatusMsg/src/main.cpp
+++ b/plugins/SimpleStatusMsg/src/main.cpp
@@ -1614,16 +1614,15 @@ static int OnICQStatusMsgRequest(WPARAM wParam, LPARAM lParam, LPARAM lMirParam)
return 0;
char *szProto = (char *)lMirParam;
- BOOL bContactFound = FALSE;
- MCONTACT hContact;
+ MCONTACT hContact = 0;
- for (auto &hContact : Contacts()) {
- if (db_get_dw(hContact, szProto, "UIN", 0) == (DWORD)lParam) {
- bContactFound = TRUE;
+ for (auto &cc : Contacts()) {
+ if (db_get_dw(cc, szProto, "UIN", 0) == (DWORD)lParam) {
+ hContact = cc;
break;
}
}
- if (!bContactFound)
+ if (!hContact)
return 0;
int iStatus = ICQMsgTypeToStatus(wParam);