summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorMuzaffer Kadir YILMAZ <muzafferkadiryilmaz@gmail.com>2019-02-10 10:35:21 +0300
committerMuhammet Kara <muhammet.kara@collabora.com>2019-02-11 09:09:52 +0100
commit3e214676b95ac384ae938f7baf7a4edbd4f5a7f3 (patch)
treece4f3f820ed6a9ba9e98f3e2e9e1384221498550 /basic
parent21b901d081484eacc11bacae876a9567519e9ff0 (diff)
tdf#112689: Replace chained O(U)StringBuffer::append() with operator+
Change-Id: Iba19864313dc5039f5ca27be3d0c68785612346a Reviewed-on: https://gerrit.libreoffice.org/67602 Tested-by: Jenkins Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/classes/sbunoobj.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx
index 045204c543c6..0449b2e4f40c 100644
--- a/basic/source/classes/sbunoobj.cxx
+++ b/basic/source/classes/sbunoobj.cxx
@@ -4821,11 +4821,10 @@ void SbUnoStructRefObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
// Id == -1: Display implemented interfaces according the ClassProvider
if( nId == -1 ) // Property ID_DBG_SUPPORTEDINTERFACES"
{
- OUStringBuffer aRet;
- aRet.append( ID_DBG_SUPPORTEDINTERFACES );
- aRet.append( " not available.\n(TypeClass is not TypeClass_INTERFACE)\n" );
+ OUString aRet = OUStringLiteral( ID_DBG_SUPPORTEDINTERFACES )
+ + " not available.\n(TypeClass is not TypeClass_INTERFACE)\n";
- pVar->PutString( aRet.makeStringAndClear() );
+ pVar->PutString( aRet );
}
// Id == -2: output properties
else if( nId == -2 ) // Property ID_DBG_PROPERTIES