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/utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/ContactsPlus/utils.cpp') 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