summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-09-03 09:33:39 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-09-03 09:34:00 +0200
commit37a6fdf890d49a20a57aeb41021dc0ff663cc628 (patch)
treeddc85350aacd58ced61263b4e34ed585e63c2933 /basic
parent411e32244c7bff5fb64a049b1c63cf15ac166cd3 (diff)
loplugin:stringconstant also for cases using char const v[] = "..."
Change-Id: Iba38686620624178a7be39d703389402bbcea4cb
Diffstat (limited to 'basic')
-rw-r--r--basic/source/classes/sbunoobj.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx
index e5b05fc7ae2d..da07e3bdc47a 100644
--- a/basic/source/classes/sbunoobj.cxx
+++ b/basic/source/classes/sbunoobj.cxx
@@ -966,7 +966,7 @@ Type getUnoTypeForSbxValue( const SbxValue* pVal )
OUStringBuffer aSeqTypeName;
for( short iDim = 0 ; iDim < nDims ; iDim++ )
{
- aSeqTypeName.appendAscii(aSeqLevelStr);
+ aSeqTypeName.append(aSeqLevelStr);
}
aSeqTypeName.append(aElementType.getTypeName());
aRetType = Type( TypeClass_SEQUENCE, aSeqTypeName.makeStringAndClear() );
@@ -1104,7 +1104,7 @@ static Any implRekMultiDimArrayToSequence( SbxDimArray* pArray,
sal_Int32 i;
for( i = 0 ; i < nSeqLevel ; i++ )
{
- aSeqTypeName.appendAscii(aSeqLevelStr);
+ aSeqTypeName.append(aSeqLevelStr);
}
aSeqTypeName.append(aElemType.getTypeName());
Type aSeqType( TypeClass_SEQUENCE, aSeqTypeName.makeStringAndClear() );
@@ -1769,7 +1769,7 @@ OUString Impl_GetSupportedInterfaces( SbUnoObject* pUnoObj )
OUStringBuffer aRet;
if( eType != TypeClass_INTERFACE )
{
- aRet.appendAscii( ID_DBG_SUPPORTEDINTERFACES );
+ aRet.append( ID_DBG_SUPPORTEDINTERFACES );
aRet.append( " not available.\n(TypeClass is not TypeClass_INTERFACE)\n" );
}
else
@@ -5018,7 +5018,7 @@ void SbUnoStructRefObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
if( nId == -1 ) // Property ID_DBG_SUPPORTEDINTERFACES"
{
OUStringBuffer aRet;
- aRet.appendAscii( ID_DBG_SUPPORTEDINTERFACES );
+ aRet.append( ID_DBG_SUPPORTEDINTERFACES );
aRet.append( " not available.\n(TypeClass is not TypeClass_INTERFACE)\n" );
pVar->PutString( aRet.makeStringAndClear() );