From 3ee177a14d8b816ef5b62500aeb54524c289e045 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 15 Oct 2019 20:24:10 +0200 Subject: loplugin:stringadd look through a couple more known-good methods Change-Id: Ifbdb3e41eae665f7dcaf5301aaba2b6e4662cf48 Reviewed-on: https://gerrit.libreoffice.org/80855 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmlhelp/source/cxxhelp/provider/urlparameter.cxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'xmlhelp') diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx index 8a395226e99f..05b7f1dbb1e9 100644 --- a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx +++ b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx @@ -378,12 +378,10 @@ bool URLParameter::scheme() m_aExpr.copy(sal::static_int_cast(nLen) - 6); if( aLastStr == "DbPAR=" ) { - OUString aNewExpr = m_aExpr.copy( 0, 20 ); - OUString aSharedStr("shared"); - aNewExpr += aSharedStr; - aNewExpr += m_aExpr.copy( 20 ); - aNewExpr += aSharedStr; - m_aExpr = aNewExpr; + m_aExpr = m_aExpr.copy( 0, 20 ) + + "shared" + + m_aExpr.copy( 20 ) + + "shared"; } } -- cgit