diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-15 20:24:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-16 07:57:45 +0200 |
commit | 3ee177a14d8b816ef5b62500aeb54524c289e045 (patch) | |
tree | 982b524a298c2b2f959f5c858c81be9b3420566a /xmlhelp/source | |
parent | 820f340f285932bbb8d6739177e9bb81c23c1a5d (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlhelp/source')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/urlparameter.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
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<sal_uInt32>(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"; } } |