From bc539bd3c04964471af6b5ca54264215c8995696 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 28 Oct 2019 10:35:49 +0200 Subject: loplugin:stringadd improve detection if one side of the expression is a compile-time-constant, we don't need to worry about side-effects on the other side Change-Id: Iee71ea51b327ef244bf39f128f921ac325d74e2b Reviewed-on: https://gerrit.libreoffice.org/81589 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmlhelp/source/cxxhelp/provider/urlparameter.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'xmlhelp/source') diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx index 8e99fe22df03..6893c17cc213 100644 --- a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx +++ b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx @@ -819,11 +819,11 @@ InputStreamTransformer::InputStreamTransformer( URLParameter* urlParam, OUString xslURL = pDatabases->getInstallPathAsURL(); - OString xslURLascii( - xslURL.getStr(), - xslURL.getLength(), - RTL_TEXTENCODING_UTF8); - xslURLascii += "main_transform.xsl"; + OString xslURLascii = OString( + xslURL.getStr(), + xslURL.getLength(), + RTL_TEXTENCODING_UTF8) + + "main_transform.xsl"; ugblData = &userData; -- cgit