summaryrefslogtreecommitdiff
path: root/sfx2/source/inet
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-23 09:46:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-24 08:35:56 +0200
commit4e51d68dc3595dae8b2519e0a023c9b1ca13a8fd (patch)
treea73bff3750fae258b3b4321cc65e68f6ff8ed0c7 /sfx2/source/inet
parentec98adb2ec71882801a4db031c8e2bcf3075c5a0 (diff)
clang-tidy performance-unnecessary-copy-init in sfx2..svtools
Change-Id: I1e92472b4aaeca1eb1372bd18d10cc9e0766dc39 Reviewed-on: https://gerrit.libreoffice.org/62251 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/inet')
-rw-r--r--sfx2/source/inet/inettbc.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sfx2/source/inet/inettbc.cxx b/sfx2/source/inet/inettbc.cxx
index 4533f7083bb5..e5d63f757042 100644
--- a/sfx2/source/inet/inettbc.cxx
+++ b/sfx2/source/inet/inettbc.cxx
@@ -227,8 +227,7 @@ void SfxURLToolBoxControl_Impl::StateChanged
}
const SfxStringItem *pURL = dynamic_cast< const SfxStringItem* >(pState);
- OUString aRep( pURL->GetValue() );
- INetURLObject aURL( aRep );
+ INetURLObject aURL( pURL->GetValue() );
INetProtocol eProt = aURL.GetProtocol();
if ( eProt == INetProtocol::File )
{