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
This commit is contained in:
Caolán McNamara
2014-10-02 09:33:07 +01:00
parent 83766aa698
commit db5ed50cee

View File

@@ -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));
}