diff options
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/hcode.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hwpfilter/source/hcode.cxx b/hwpfilter/source/hcode.cxx index 92ca0e381f25..93f5f0ff72ca 100644 --- a/hwpfilter/source/hcode.cxx +++ b/hwpfilter/source/hcode.cxx @@ -1188,15 +1188,15 @@ hchar_string hstr2ucsstr(hchar const* hstr) { ::std::string ret; int res, j; - int c; hchar dest[3]; for( ; *hstr ; ) { res = hcharconv(*hstr++, dest, KS); for( j = 0 ; j < res ; j++ ){ - c = dest[j]; - if( c < 32 ) c = ' '; - else if( c < 256 ) + int c = dest[j]; + if( c < 32 ) + c = ' '; + if( c < 256 ) { ret.push_back(sal::static_int_cast<char>(c)); } |