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