diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-08-30 15:26:56 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-08-30 15:26:56 +0200 |
commit | 1bab5c741940fe582bd5d142a5ef686c340c17e6 (patch) | |
tree | fda88b2f1b1fb992c62b4f751540155f6a9e899b | |
parent | 30b84816eb5c6cd44bdee459cac1bb9f90859aec (diff) |
loplugin:stringconstant: adapt to improved OUStringLiteral1 (basic)
Change-Id: I7e9ceb5513b34115bb1f41e627af06bbffc6ecf1
-rw-r--r-- | basic/source/sbx/sbxexec.cxx | 2 | ||||
-rw-r--r-- | basic/source/sbx/sbxvar.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/basic/source/sbx/sbxexec.cxx b/basic/source/sbx/sbxexec.cxx index 2cd35bea412e..9507f47f84e3 100644 --- a/basic/source/sbx/sbxexec.cxx +++ b/basic/source/sbx/sbxexec.cxx @@ -156,7 +156,7 @@ static SbxVariableRef Operand break; } } - aString += OUString(*p++); + aString += OUStringLiteral1(*p++); } refVar->PutString( aString ); } diff --git a/basic/source/sbx/sbxvar.cxx b/basic/source/sbx/sbxvar.cxx index 386de3606854..784e9d11aa36 100644 --- a/basic/source/sbx/sbxvar.cxx +++ b/basic/source/sbx/sbxvar.cxx @@ -255,7 +255,7 @@ const OUString& SbxVariable::GetName( SbxNameType t ) const } if( cType != ' ' ) { - aTmp += OUString(sal_Unicode(cType)); + aTmp += OUStringLiteral1(cType); } } aTmp += "("; @@ -288,7 +288,7 @@ const OUString& SbxVariable::GetName( SbxNameType t ) const } if( cType != ' ' ) { - aTmp += OUString((sal_Unicode)cType); + aTmp += OUStringLiteral1(cType); if( i->eType & SbxARRAY ) { aTmp += "()"; |