From 20d1480ed78c9395749d5b4e198d8687f95220e6 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Tue, 31 Mar 2009 05:32:30 +0000 Subject: x64 port git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@450 4f64403b-2f21-0410-a795-97e2b3489a10 --- meta2/core_functions.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'meta2/core_functions.cpp') diff --git a/meta2/core_functions.cpp b/meta2/core_functions.cpp index 38fba2c..a7fae8c 100644 --- a/meta2/core_functions.cpp +++ b/meta2/core_functions.cpp @@ -23,8 +23,6 @@ HANDLE GetMetaHandle(DWORD id) { void Meta_Hide(bool hide_metas) { HANDLE hContact = (HANDLE)CallService( MS_DB_CONTACT_FINDFIRST, 0, 0); - char *proto; - HANDLE hMeta; while(hContact != NULL) { if(IsMetacontact(hContact)) { DBWriteContactSettingByte(hContact, "CList", "Hidden", hide_metas ? 1 : 0); @@ -187,7 +185,7 @@ void Meta_Remove(HANDLE hSub) { metaMap.remove(hMeta); } else { int def = DBGetContactSettingByte(hMeta, MODULE, "Default", -1); - if(def < 0 || def >= metaMap[hMeta].size()) + if(def < 0 || def >= (int)metaMap[hMeta].size()) DBWriteContactSettingByte(hMeta, MODULE, "Default", 0); } FireSubcontactsChanged(hMeta); -- cgit v1.2.3