diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-18 14:09:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-19 07:58:15 +0200 |
commit | e61e4e56994c22221dcc0e9f4c2cb62fd63ac823 (patch) | |
tree | d38359c4e9a3de7112075244d7013907ce135d4f /hwpfilter/source/hcode.cxx | |
parent | ba80f637b82ef5df7c650ec301ca9ebb5f678f44 (diff) |
clang-tidy readability-misleading-indentation
Change-Id: I4673fc7c694924b41d048a1918ddb8b0e0af1f79
Reviewed-on: https://gerrit.libreoffice.org/61935
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'hwpfilter/source/hcode.cxx')
-rw-r--r-- | hwpfilter/source/hcode.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/hwpfilter/source/hcode.cxx b/hwpfilter/source/hcode.cxx index 7dd7408ffe56..836a39ab0d18 100644 --- a/hwpfilter/source/hcode.cxx +++ b/hwpfilter/source/hcode.cxx @@ -895,13 +895,13 @@ int hcharconv(hchar ch, hchar *dest, int codeType) if (ch < 128){ dest[0] = ch; return 1; - } + } if (IsHangul(ch)) { - hchar ch2 = ch; + hchar ch2 = ch; if (codeType == KS) ch = cdkssm2ks_han(ch); - else if( codeType == UNICODE ){ + else if( codeType == UNICODE ){ if( ch2 == 0xd3c5 ){ dest[0] = 0xd55c; return 1 ; @@ -909,8 +909,8 @@ int hcharconv(hchar ch, hchar *dest, int codeType) int res = kssm_hangul_to_ucs2(ch, dest); //printf("hcharconv Hangul[%04x]\n",dest[0]); return res; - } - dest[0] = ch; + } + dest[0] = ch; return 1; } /* Chinese characters have a value of 4888 kinds from 0x4000. */ @@ -938,12 +938,12 @@ int hcharconv(hchar ch, hchar *dest, int codeType) lo = sal::static_int_cast<unsigned char>(index % (0xFE - 0xA1 + 1) + 0xA1); ch = (hi << 8) | lo; } - else if(codeType == UNICODE){ + else if(codeType == UNICODE){ hi = sal::static_int_cast<unsigned char>(index / (0xFE - 0xA1 + 1) + 0xCA); lo = sal::static_int_cast<unsigned char>(index % (0xFE - 0xA1 + 1) + 0xA1); ch = (hi << 8) | lo; ch = ksc5601_han_to_ucs2(ch); - } + } else { hi = sal::static_int_cast<unsigned char>(index / (0x100 - 0x31 - 0x11 - 2) + 0xE0); @@ -1321,7 +1321,7 @@ char *hcolor2str(uchar color, uchar shade, char *buf, bool bIsChar) { // nothing special here, just copy } - else + else { unsigned int srclen = strlen(src); if (3 < srclen) |