From 3e214676b95ac384ae938f7baf7a4edbd4f5a7f3 Mon Sep 17 00:00:00 2001 From: Muzaffer Kadir YILMAZ Date: Sun, 10 Feb 2019 10:35:21 +0300 Subject: 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 --- basic/source/classes/sbunoobj.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'basic') 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 -- cgit