diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-11-08 10:15:04 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-11-08 11:28:31 +0100 |
commit | 05bec2bc26c02177a56df9792b083eb04b99f778 (patch) | |
tree | df1b079f317ed35be3aa69e4a43d99f4026c50bd /svtools | |
parent | 83579e8018bf998552394cfe1e4d57f023e07382 (diff) |
loplugin:stringadd (clang-cl)
Change-Id: Icf2894f77c90aa4620910d621249947bad4be8b7
Reviewed-on: https://gerrit.libreoffice.org/82269
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/inettbc.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx index beec4c1d6d3e..cce328d77052 100644 --- a/svtools/source/control/inettbc.cxx +++ b/svtools/source/control/inettbc.cxx @@ -825,8 +825,7 @@ OUString SvtURLBox::ParseSmart( const OUString& _aText, const OUString& _aBaseUR if( aText.startsWith("\\") && (aText.getLength() < 2 || aText[ 1 ] != '\\') ) { // cut to first segment - OUString aTmp = INetURLObject::GetScheme( eBaseProt ); - aTmp += "/"; + OUString aTmp = INetURLObject::GetScheme( eBaseProt ) + "/"; aTmp += aObj.getName( 0, true, INetURLObject::DecodeMechanism::WithCharset ); aObj.SetURL( aTmp ); @@ -1889,8 +1888,7 @@ OUString URLBox::ParseSmart( const OUString& _aText, const OUString& _aBaseURL ) if( aText.startsWith("\\") && (aText.getLength() < 2 || aText[ 1 ] != '\\') ) { // cut to first segment - OUString aTmp = INetURLObject::GetScheme( eBaseProt ); - aTmp += "/"; + OUString aTmp = INetURLObject::GetScheme( eBaseProt ) + "/"; aTmp += aObj.getName( 0, true, INetURLObject::DecodeMechanism::WithCharset ); aObj.SetURL( aTmp ); |