From ddba4ede6b451d0cfcd0d32b5180fbd0689966bf Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 10 Feb 2014 08:04:30 +0000 Subject: - HANDLE hContact => HCONTACT - GCF_* prefix was added to chat constants to avoid name conflicts git-svn-id: http://svn.miranda-ng.org/main/trunk@8078 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/utils/path.cpp | 14 +++++++------- src/modules/utils/timezones.cpp | 10 +++++----- src/modules/utils/windowlist.cpp | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) (limited to 'src/modules/utils') diff --git a/src/modules/utils/path.cpp b/src/modules/utils/path.cpp index b60d5c68ac..0f47fdb23a 100644 --- a/src/modules/utils/path.cpp +++ b/src/modules/utils/path.cpp @@ -68,7 +68,7 @@ static INT_PTR createDirTreeW(WPARAM, LPARAM lParam) return CreateDirectoryTreeW((WCHAR*)lParam); } -TCHAR *GetContactID(HANDLE hContact) +TCHAR *GetContactID(HCONTACT hContact) { TCHAR *theValue = {0}; char *szProto = GetContactProto(hContact); @@ -114,12 +114,12 @@ static __forceinline char *_xstrselect(char *, char *s1, TCHAR *s2) { return s1; static __forceinline char *_itox(char *, int a) { return itoa(a, (char *)mir_alloc(sizeof(char)*20), 10); } static __forceinline char *mir_a2x(char *, char *s) { return mir_strdup(s); } -static __forceinline char *GetContactNickX(char *, HANDLE hContact) +static __forceinline char *GetContactNickX(char *, HCONTACT hContact) { return mir_strdup((char *)CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM)hContact, 0)); } -static __forceinline char *GetContactIDX(char *, HANDLE hContact) +static __forceinline char *GetContactIDX(char *, HCONTACT hContact) { TCHAR *id = GetContactID(hContact); char* res = mir_t2a(id); @@ -201,12 +201,12 @@ static __forceinline TCHAR *_xstrselect(TCHAR *, char *s1, TCHAR *s2) { return s static __forceinline TCHAR *_itox(TCHAR *, int a) { return _itot(a, (TCHAR *)mir_alloc(sizeof(TCHAR)*20), 10); } static __forceinline TCHAR *mir_a2x(TCHAR *, char *s) { return mir_a2t(s); } -static __forceinline TCHAR *GetContactNickX(TCHAR *, HANDLE hContact) +static __forceinline TCHAR *GetContactNickX(TCHAR *, HCONTACT hContact) { return mir_tstrdup((TCHAR *)CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM)hContact, GCDNF_TCHAR)); } -static __forceinline TCHAR *GetContactIDX(TCHAR *, HANDLE hContact) +static __forceinline TCHAR *GetContactIDX(TCHAR *, HCONTACT hContact) { return GetContactID(hContact); } @@ -277,7 +277,7 @@ static __forceinline TCHAR *GetPathVarX(TCHAR *, int code) } template -XCHAR *GetInternalVariable(XCHAR *key, size_t keyLength, HANDLE hContact) +XCHAR *GetInternalVariable(XCHAR *key, size_t keyLength, HCONTACT hContact) { XCHAR *theValue = NULL; XCHAR *theKey = (XCHAR *)_alloca(sizeof(XCHAR) * (keyLength + 1)); @@ -323,7 +323,7 @@ XCHAR *GetInternalVariable(XCHAR *key, size_t keyLength, HANDLE hContact) } template -XCHAR *GetVariableFromArray(REPLACEVARSARRAY *vars, XCHAR *key, size_t keyLength, HANDLE hContact, bool *bFree) +XCHAR *GetVariableFromArray(REPLACEVARSARRAY *vars, XCHAR *key, size_t keyLength, HCONTACT hContact, bool *bFree) { *bFree = false; for (REPLACEVARSARRAY *var = vars; var && var->lptzKey; ++var) diff --git a/src/modules/utils/timezones.cpp b/src/modules/utils/timezones.cpp index 174d9ea1fc..ec3442c471 100644 --- a/src/modules/utils/timezones.cpp +++ b/src/modules/utils/timezones.cpp @@ -168,7 +168,7 @@ static HANDLE timeapiGetInfoByName(LPCTSTR tszName, DWORD dwFlags) return tz; } -static HANDLE timeapiGetInfoByContact(HANDLE hContact, DWORD dwFlags) +static HANDLE timeapiGetInfoByContact(HCONTACT hContact, DWORD dwFlags) { if (hContact == NULL) return (dwFlags & (TZF_DIFONLY | TZF_KNOWNONLY)) ? NULL : &myInfo.myTZ; @@ -227,7 +227,7 @@ static HANDLE timeapiGetInfoByContact(HANDLE hContact, DWORD dwFlags) return (dwFlags & (TZF_DIFONLY | TZF_KNOWNONLY)) ? NULL : &myInfo.myTZ; } -static void timeapiSetInfoByContact(HANDLE hContact, HANDLE hTZ) +static void timeapiSetInfoByContact(HCONTACT hContact, HANDLE hTZ) { MIM_TIMEZONE *tz = (MIM_TIMEZONE*)hTZ; @@ -354,7 +354,7 @@ static const ListMessages *GetListMessages(HWND hWnd, DWORD dwFlags) } -static int timeapiSelectListItem(HANDLE hContact, HWND hWnd, DWORD dwFlags) +static int timeapiSelectListItem(HCONTACT hContact, HWND hWnd, DWORD dwFlags) { if (hWnd == NULL) // nothing to do return -1; @@ -386,7 +386,7 @@ static int timeapiSelectListItem(HANDLE hContact, HWND hWnd, DWORD dwFlags) } -static int timeapiPrepareList(HANDLE hContact, HWND hWnd, DWORD dwFlags) +static int timeapiPrepareList(HCONTACT hContact, HWND hWnd, DWORD dwFlags) { if (hWnd == NULL) // nothing to do return 0; @@ -408,7 +408,7 @@ static int timeapiPrepareList(HANDLE hContact, HWND hWnd, DWORD dwFlags) } -static void timeapiStoreListResult(HANDLE hContact, HWND hWnd, DWORD dwFlags) +static void timeapiStoreListResult(HCONTACT hContact, HWND hWnd, DWORD dwFlags) { const ListMessages *lstMsg = GetListMessages(hWnd, dwFlags); if (lstMsg == NULL) return; diff --git a/src/modules/utils/windowlist.cpp b/src/modules/utils/windowlist.cpp index 29569ff93e..1337795f2d 100644 --- a/src/modules/utils/windowlist.cpp +++ b/src/modules/utils/windowlist.cpp @@ -26,12 +26,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. struct TWindowListItem { - TWindowListItem(HANDLE _contact, HWND _wnd) : + TWindowListItem(HCONTACT _contact, HWND _wnd) : hContact(_contact), hWnd(_wnd) {} - HANDLE hContact; + HCONTACT hContact; HWND hWnd; }; -- cgit v1.2.3