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 --- xmlhelp/source/cxxhelp/provider/databases.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'xmlhelp/source/cxxhelp/provider/databases.cxx') diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx index 335820c21d7e..439d45e790f3 100644 --- a/xmlhelp/source/cxxhelp/provider/databases.cxx +++ b/xmlhelp/source/cxxhelp/provider/databases.cxx @@ -1455,9 +1455,10 @@ OUString KeyDataBaseFileIterator::nextDbFile( bool& o_rbExtension ) switch( m_eState ) { case IteratorState::InitialModule: - aRetFile = OUStringBuffer(m_rDatabases.getInstallPathAsURL()). - append(m_rDatabases.processLang(m_aLanguage)).append('/'). - append(m_aInitialModule).append(".key").makeStringAndClear(); + aRetFile = m_rDatabases.getInstallPathAsURL() + + m_rDatabases.processLang(m_aLanguage) + + "/" + + m_aInitialModule + ".key"; o_rbExtension = false; -- cgit