From 78c0815c4118fe24ab78cce2dc48a6232dcd824a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 2 Jun 2012 20:55:18 +0000 Subject: - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ContactsPlus/contacts.vcxproj | 2 ++ plugins/ContactsPlus/send.cpp | 2 +- plugins/ContactsPlus/utils.cpp | 6 +++--- 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'plugins/ContactsPlus') diff --git a/plugins/ContactsPlus/contacts.vcxproj b/plugins/ContactsPlus/contacts.vcxproj index 11c856d9e1..bd814a7095 100644 --- a/plugins/ContactsPlus/contacts.vcxproj +++ b/plugins/ContactsPlus/contacts.vcxproj @@ -156,6 +156,8 @@ WIN64;_DEBUG;_WINDOWS;_USRDLL;CONTACTS_EXPORTS;%(PreprocessorDefinitions) EnableFastChecks false + Use + contacts.h _DEBUG;%(PreprocessorDefinitions) diff --git a/plugins/ContactsPlus/send.cpp b/plugins/ContactsPlus/send.cpp index 1382b627b5..cebc2cb00d 100644 --- a/plugins/ContactsPlus/send.cpp +++ b/plugins/ContactsPlus/send.cpp @@ -375,7 +375,7 @@ INT_PTR CALLBACK SendDlgProc( HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPar case WM_COMMAND: { - if(!lParam && CallService(MS_CLIST_MENUPROCESSCOMMAND,MAKEWPARAM(LOWORD(wParam), MPCF_CONTACTMENU), (LPARAM)wndData->hContact)) + if (!lParam && CallService(MS_CLIST_MENUPROCESSCOMMAND,MAKEWPARAM(LOWORD(wParam), MPCF_CONTACTMENU), (LPARAM)wndData->hContact)) break; switch(LOWORD(wParam)) diff --git a/plugins/ContactsPlus/utils.cpp b/plugins/ContactsPlus/utils.cpp index a86cdff85f..314e018a39 100644 --- a/plugins/ContactsPlus/utils.cpp +++ b/plugins/ContactsPlus/utils.cpp @@ -697,11 +697,11 @@ WCHAR *make_unicode_string(const unsigned char *utf8) c = utf8[index++]; while (c) { - if((c & 0x80) == 0) + if ((c & 0x80) == 0) { out[out_index++] = c; } - else if((c & 0xe0) == 0xe0) + else if ((c & 0xe0) == 0xe0) { out[out_index] = (c & 0x1F) << 12; c = utf8[index++]; @@ -780,7 +780,7 @@ static int utf8_decode(const unsigned char *from, char **to) } *to = (char*)malloc((chars + 1)*sizeof(unsigned char)); - if(*to == NULL) + if (*to == NULL) { // fprintf(stderr, "Out of memory processing string to local charset\n"); SAFE_FREE((void**)&unicode); -- cgit v1.2.3