From 335de1a2216523527f2a6a9aef4f5997f775e648 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 21 Apr 2021 20:44:57 +0200 Subject: no need makeStringAndClear() when appending to buffer it just creates an unnecessary temporary Change-Id: Ide3cd99b2ac4f2a621e5d55ce4bdc95d05430709 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114467 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basic/source/classes/sbunoobj.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'basic') diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx index 6b0451b01a1d..15c5e3778201 100644 --- a/basic/source/classes/sbunoobj.cxx +++ b/basic/source/classes/sbunoobj.cxx @@ -1898,7 +1898,7 @@ static OUString Impl_DumpProperties(SbUnoObject& rUnoObj) else aPropStr.append( "; " ); - aRet.append( aPropStr.makeStringAndClear() ); + aRet.append( aPropStr ); } } return aRet.makeStringAndClear(); @@ -4811,7 +4811,7 @@ OUString SbUnoStructRefObject::Impl_DumpProperties() { aPropStr.append( "; " ); } - aRet.append( aPropStr.makeStringAndClear() ); + aRet.append( aPropStr ); } } return aRet.makeStringAndClear(); -- cgit