Kaydet (Commit) db5ed50c authored tarafından Caolán McNamara's avatar Caolán McNamara

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
üst 83766aa6
...@@ -1188,15 +1188,15 @@ hchar_string hstr2ucsstr(hchar const* hstr) ...@@ -1188,15 +1188,15 @@ hchar_string hstr2ucsstr(hchar const* hstr)
{ {
::std::string ret; ::std::string ret;
int res, j; int res, j;
int c;
hchar dest[3]; hchar dest[3];
for( ; *hstr ; ) for( ; *hstr ; )
{ {
res = hcharconv(*hstr++, dest, KS); res = hcharconv(*hstr++, dest, KS);
for( j = 0 ; j < res ; j++ ){ for( j = 0 ; j < res ; j++ ){
c = dest[j]; int c = dest[j];
if( c < 32 ) c = ' '; if( c < 32 )
else if( c < 256 ) c = ' ';
if( c < 256 )
{ {
ret.push_back(sal::static_int_cast<char>(c)); ret.push_back(sal::static_int_cast<char>(c));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment