summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-04-21 20:44:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-04-22 12:37:39 +0200
commit335de1a2216523527f2a6a9aef4f5997f775e648 (patch)
tree5e6465d90ab11c003e5111d52e093b0281280f0c /basic
parent21aded1828b1a401a32b0b960f035370843f3771 (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/classes/sbunoobj.cxx4
1 files changed, 2 insertions, 2 deletions
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();