summaryrefslogtreecommitdiff
path: root/framework/source/layoutmanager/helpers.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-02 10:04:55 +0200
committerNoel Grandin <noel@peralex.com>2015-11-02 12:23:16 +0200
commit5797d29e9ead0a3dd181b616dfcc968a9127012d (patch)
treeec8828c4c2e7617f8d8e9334507bab517aed6dc9 /framework/source/layoutmanager/helpers.cxx
parent4ea0390faa22037f1d4f703c0882a027cf2ae643 (diff)
use uno::Reference::set method instead of assignment
Change-Id: Ic979f8a7734d0ef7a915d47a875cdcd460c0cc58
Diffstat (limited to 'framework/source/layoutmanager/helpers.cxx')
-rw-r--r--framework/source/layoutmanager/helpers.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/layoutmanager/helpers.cxx b/framework/source/layoutmanager/helpers.cxx
index 898a0e43c6b8..7a21bfbc6d82 100644
--- a/framework/source/layoutmanager/helpers.cxx
+++ b/framework/source/layoutmanager/helpers.cxx
@@ -112,7 +112,7 @@ vcl::Window* getWindowFromXUIElement( const uno::Reference< ui::XUIElement >& xU
SolarMutexGuard aGuard;
uno::Reference< awt::XWindow > xWindow;
if ( xUIElement.is() )
- xWindow = uno::Reference< awt::XWindow >( xUIElement->getRealInterface(), uno::UNO_QUERY );
+ xWindow.set( xUIElement->getRealInterface(), uno::UNO_QUERY );
return VCLUnoHelper::GetWindow( xWindow );
}
@@ -170,7 +170,7 @@ uno::Reference< awt::XWindowPeer > createToolkitWindow( const uno::Reference< un
aDescriptor.Type = awt::WindowClass_SIMPLE;
aDescriptor.WindowServiceName = OUString::createFromAscii( pService );
aDescriptor.ParentIndex = -1;
- aDescriptor.Parent = uno::Reference< awt::XWindowPeer >( rParent, uno::UNO_QUERY );
+ aDescriptor.Parent.set( rParent, uno::UNO_QUERY );
aDescriptor.Bounds = awt::Rectangle(0,0,0,0);
aDescriptor.WindowAttributes = 0;