diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
commit | 78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch) | |
tree | 8512c50df70b8dd80c919e88ade3419207c95956 /plugins/ContactsPlus/utils.cpp | |
parent | ce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff) |
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ContactsPlus/utils.cpp')
-rw-r--r-- | plugins/ContactsPlus/utils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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);
|