From 4e51d68dc3595dae8b2519e0a023c9b1ca13a8fd Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 23 Oct 2018 09:46:58 +0200 Subject: 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 --- sfx2/source/doc/objmisc.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sfx2/source/doc/objmisc.cxx') diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx index f96947d94970..4bcfd9118e59 100644 --- a/sfx2/source/doc/objmisc.cxx +++ b/sfx2/source/doc/objmisc.cxx @@ -1576,7 +1576,7 @@ vcl::Window* SfxObjectShell::GetDialogParent( SfxMedium const * pLoadingMedium ) const SfxUnoFrameItem* pUnoItem = SfxItemSet::GetItem(pSet, SID_FILLFRAME, false); if ( pUnoItem ) { - uno::Reference < frame::XFrame > xFrame( pUnoItem->GetFrame() ); + const uno::Reference < frame::XFrame >& xFrame( pUnoItem->GetFrame() ); pWindow = VCLUnoHelper::GetWindow( xFrame->getContainerWindow() ); } -- cgit v1.2.3