diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-30 10:23:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-30 13:36:11 +0000 |
commit | 6ffdcbdd29f014fcce290dfdb969fb6ff66a95ed (patch) | |
tree | de79b16c883e1176729afb7bef4485d00f52faa3 /ucb/source/ucp/inc | |
parent | 04ed7cbe53243a042ceeecc62212e73a910d7aef (diff) |
loplugin:stringadd in ucb
when applying my upcoming patch to also consider O[U]StringBuffer
Change-Id: I2445a69dc46314c73f54c190a0c498c0309be06b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149750
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source/ucp/inc')
-rw-r--r-- | ucb/source/ucp/inc/urihelper.hxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/ucb/source/ucp/inc/urihelper.hxx b/ucb/source/ucp/inc/urihelper.hxx index 5e89aba5ca5b..fa9c7c918151 100644 --- a/ucb/source/ucp/inc/urihelper.hxx +++ b/ucb/source/ucp/inc/urihelper.hxx @@ -94,16 +94,10 @@ namespace ucb_impl::urihelper { while ( nIndex >= 0 ); if ( !aParams.isEmpty() ) - { - aResult.append( u'?' ); - aResult.append( aParams ); - } + aResult.append( u"?" + aParams ); if ( !aFragment.isEmpty() ) - { - aResult.append( u'#' ); - aResult.append( aFragment ); - } + aResult.append( u"#" + aFragment ); return aResult.makeStringAndClear(); } |