summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-10 12:29:34 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-10 12:29:34 +0300
commitda8d306b9d6fbe48f04f56d78be2058873f03dbc (patch)
treec5bb248306e72b158205f4e5bb51733822d95547 /plugins
parent590708ac9ed5179f5c4ff8855f50b49233b5628b (diff)
Variables: warning fix + minor code cleaning
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Variables/src/contact.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Variables/src/contact.cpp b/plugins/Variables/src/contact.cpp
index c2ab526b37..a0188f964c 100644
--- a/plugins/Variables/src/contact.cpp
+++ b/plugins/Variables/src/contact.cpp
@@ -76,7 +76,7 @@ static builtinCnfs[] =
/* contact cache entry */
struct CONTACTCE
{
- int flags;
+ DWORD flags;
wchar_t* tszContact;
MCONTACT hContact;
};
@@ -333,7 +333,7 @@ static int contactSettingChanged(WPARAM hContact, LPARAM lParam)
{
/* remove from cache */
mir_free(it->tszContact);
- arContactCache.remove(it);
+ arContactCache.remove(arContactCache.indexOf(&it));
break;
}
}