Kaydet (Commit) 71ccd61a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:salunicodeliteral: forms

Change-Id: If5bc83be6bd633c84811160e3e504bbee31f4d9d
üst c561a6a6
......@@ -328,14 +328,14 @@ OUString Convert::collapseWhitespace( const OUString& _rString )
for( sal_Int32 i = 0; i < nLength; i++ )
{
sal_Unicode c = pStr[i];
if( c == sal_Unicode(0x08) ||
c == sal_Unicode(0x0A) ||
c == sal_Unicode(0x0D) ||
c == sal_Unicode(0x20) )
if( c == u'\x0008' ||
c == u'\x000A' ||
c == u'\x000D' ||
c == u' ' )
{
if( ! bStrip )
{
aBuffer.append( sal_Unicode(0x20) );
aBuffer.append( u' ' );
bStrip = true;
}
}
......@@ -345,7 +345,7 @@ OUString Convert::collapseWhitespace( const OUString& _rString )
aBuffer.append( c );
}
}
if( aBuffer[ aBuffer.getLength() - 1 ] == sal_Unicode( 0x20 ) )
if( aBuffer[ aBuffer.getLength() - 1 ] == u' ' )
aBuffer.setLength( aBuffer.getLength() - 1 );
return aBuffer.makeStringAndClear();
}
......
......@@ -409,7 +409,7 @@ namespace xforms
rtl_math_ConversionStatus eStatus;
sal_Int32 nEnd;
double f = ::rtl::math::stringToDouble(
rValue, '.', sal_Unicode(0), &eStatus, &nEnd );
rValue, '.', u'\0', &eStatus, &nEnd );
// error checking...
bool bReturn = false;
......
......@@ -262,10 +262,10 @@ static bool lcl_isWhitespace( const OUString& rString )
for( sal_Int32 i = 0; bWhitespace && ( i < nLength ); i++ )
{
sal_Unicode c = pStr[i];
bWhitespace = ( c == sal_Unicode(0x09) ||
c == sal_Unicode(0x0A) ||
c == sal_Unicode(0x0D) ||
c == sal_Unicode(0x20) );
bWhitespace = ( c == u'\x0009' ||
c == u'\x000A' ||
c == u'\x000D' ||
c == u' ' );
}
return bWhitespace;
}
......
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