From da8d306b9d6fbe48f04f56d78be2058873f03dbc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 10 Apr 2018 12:29:34 +0300 Subject: Variables: warning fix + minor code cleaning --- plugins/Variables/src/contact.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Variables') 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; } } -- cgit v1.2.3