summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-08-30 15:26:56 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-08-30 15:26:56 +0200
commit1bab5c741940fe582bd5d142a5ef686c340c17e6 (patch)
treefda88b2f1b1fb992c62b4f751540155f6a9e899b /basic
parent30b84816eb5c6cd44bdee459cac1bb9f90859aec (diff)
loplugin:stringconstant: adapt to improved OUStringLiteral1 (basic)
Change-Id: I7e9ceb5513b34115bb1f41e627af06bbffc6ecf1
Diffstat (limited to 'basic')
-rw-r--r--basic/source/sbx/sbxexec.cxx2
-rw-r--r--basic/source/sbx/sbxvar.cxx4
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 += "()";