summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-04-28 17:58:50 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-04-28 18:27:01 +0200
commitf06e69672302db866f269fbe9cb5f34e91f8bfbb (patch)
tree7aa989fbf6c117d45f73cf2959758d63ffbf6cb4 /basic
parentc9a36f5cb5da15c4441be67913f99c467e734d43 (diff)
loplugin:salunicodeliteral: basic
Change-Id: I479666b439f1d6324f07253d65181983b7c2c3ea
Diffstat (limited to 'basic')
-rw-r--r--basic/source/classes/image.cxx2
-rw-r--r--basic/source/comp/parser.cxx2
-rw-r--r--basic/source/sbx/sbxscan.cxx4
3 files changed, 4 insertions, 4 deletions
diff --git a/basic/source/classes/image.cxx b/basic/source/classes/image.cxx
index 9e9e4c6d6602..e240c17d7854 100644
--- a/basic/source/classes/image.cxx
+++ b/basic/source/classes/image.cxx
@@ -660,7 +660,7 @@ OUString SbiImage::GetString( short nId ) const
if( nLen == 1 )
{
// Force length 1 and make char 0 afterwards
- OUString aNullCharStr( (sal_Unicode)0);
+ OUString aNullCharStr( u'\0');
return aNullCharStr;
}
}
diff --git a/basic/source/comp/parser.cxx b/basic/source/comp/parser.cxx
index f930a6c3dc71..3eef2a4e2e73 100644
--- a/basic/source/comp/parser.cxx
+++ b/basic/source/comp/parser.cxx
@@ -860,7 +860,7 @@ void SbiParser::AddConstants()
addStringConst( aPublics, "vbVerticalTab", "\x0B" );
// Force length 1 and make char 0 afterwards
- OUString aNullCharStr((sal_Unicode)0);
+ OUString aNullCharStr(u'\0');
addStringConst( aPublics, "vbNullChar", aNullCharStr );
}
diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx
index 1b46030fd0a7..a6800506faf2 100644
--- a/basic/source/sbx/sbxscan.cxx
+++ b/basic/source/sbx/sbxscan.cxx
@@ -530,11 +530,11 @@ static sal_uInt16 printfmtstr( const OUString& rStr, OUString& rRes, const OUStr
case '\\':
do
{
- aTemp.append( *pStr ? *pStr++ : static_cast< sal_Unicode >(' '));
+ aTemp.append( *pStr ? *pStr++ : u' ');
pFmt++;
}
while( *pFmt && *pFmt != '\\' );
- aTemp.append(*pStr ? *pStr++ : static_cast< sal_Unicode >(' '));
+ aTemp.append(*pStr ? *pStr++ : u' ');
pFmt++; break;
case '&':
aTemp = rStr;