summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-02 09:33:07 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-02 14:48:47 +0100
commitdb5ed50ceeea8dad6f7603e935be30e2c585cf7d (patch)
treeb79f330c718b4d06952a14b51d629da11abd495b /hwpfilter
parent83766aa698c3a8bfaa04f78c22f54213fc47b3cb (diff)
coverity#1242961 Unused value
I'm guessing that this is what was meant. Though hstr2ksstr and kstr2hstr still don't match, and I'm assuming they are supposed to be mirror images of each other. Change-Id: I0fccd086e16c043324af43a5c999c2fde7cf7505
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hcode.cxx8
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));
}