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

loplugin:salunicodeliteral: basic

Change-Id: I479666b439f1d6324f07253d65181983b7c2c3ea
üst c9a36f5c
...@@ -660,7 +660,7 @@ OUString SbiImage::GetString( short nId ) const ...@@ -660,7 +660,7 @@ OUString SbiImage::GetString( short nId ) const
if( nLen == 1 ) if( nLen == 1 )
{ {
// Force length 1 and make char 0 afterwards // Force length 1 and make char 0 afterwards
OUString aNullCharStr( (sal_Unicode)0); OUString aNullCharStr( u'\0');
return aNullCharStr; return aNullCharStr;
} }
} }
......
...@@ -860,7 +860,7 @@ void SbiParser::AddConstants() ...@@ -860,7 +860,7 @@ void SbiParser::AddConstants()
addStringConst( aPublics, "vbVerticalTab", "\x0B" ); addStringConst( aPublics, "vbVerticalTab", "\x0B" );
// Force length 1 and make char 0 afterwards // Force length 1 and make char 0 afterwards
OUString aNullCharStr((sal_Unicode)0); OUString aNullCharStr(u'\0');
addStringConst( aPublics, "vbNullChar", aNullCharStr ); addStringConst( aPublics, "vbNullChar", aNullCharStr );
} }
......
...@@ -530,11 +530,11 @@ static sal_uInt16 printfmtstr( const OUString& rStr, OUString& rRes, const OUStr ...@@ -530,11 +530,11 @@ static sal_uInt16 printfmtstr( const OUString& rStr, OUString& rRes, const OUStr
case '\\': case '\\':
do do
{ {
aTemp.append( *pStr ? *pStr++ : static_cast< sal_Unicode >(' ')); aTemp.append( *pStr ? *pStr++ : u' ');
pFmt++; pFmt++;
} }
while( *pFmt && *pFmt != '\\' ); while( *pFmt && *pFmt != '\\' );
aTemp.append(*pStr ? *pStr++ : static_cast< sal_Unicode >(' ')); aTemp.append(*pStr ? *pStr++ : u' ');
pFmt++; break; pFmt++; break;
case '&': case '&':
aTemp = rStr; aTemp = rStr;
......
...@@ -220,7 +220,7 @@ namespace o3tl ...@@ -220,7 +220,7 @@ namespace o3tl
// of the implementation. Only type double is greedy and takes // of the implementation. Only type double is greedy and takes
// what it gets. // what it gets.
#define SbxMAXCHAR ((sal_Unicode)65535) #define SbxMAXCHAR u'\xFFFF'
#define SbxMINCHAR (0) #define SbxMINCHAR (0)
#define SbxMAXBYTE ( 255) #define SbxMAXBYTE ( 255)
#define SbxMAXINT ( 32767) #define SbxMAXINT ( 32767)
......
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