From 1aa31294b2d3fb562ba33d5d873da62439944f07 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 25 Jan 2021 20:25:51 +0200 Subject: avoid some ref-counting can just return a pointer here, instead of VclPtr. Change-Id: I9ab8962cbbe84ed4dfcfd658a6d758112914cb89 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109923 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sd/source/ui/framework/factories/BasicViewFactory.cxx | 2 +- sd/source/ui/slideshow/slideshowimpl.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sd') diff --git a/sd/source/ui/framework/factories/BasicViewFactory.cxx b/sd/source/ui/framework/factories/BasicViewFactory.cxx index 13e98c6d0825..7cf3a0d94059 100644 --- a/sd/source/ui/framework/factories/BasicViewFactory.cxx +++ b/sd/source/ui/framework/factories/BasicViewFactory.cxx @@ -146,7 +146,7 @@ Reference SAL_CALL BasicViewFactory::createResource ( // Get Window pointer for XWindow of the pane. vcl::Window* pWindow = nullptr; if (xPane.is()) - pWindow = VCLUnoHelper::GetWindow(xPane->getWindow()).get(); + pWindow = VCLUnoHelper::GetWindow(xPane->getWindow()); // Get the view frame. SfxViewFrame* pFrame = nullptr; diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx index 77bab18a6c70..b10d116218c4 100644 --- a/sd/source/ui/slideshow/slideshowimpl.cxx +++ b/sd/source/ui/slideshow/slideshowimpl.cxx @@ -3064,7 +3064,7 @@ void PresentationSettingsEx::SetPropertyValue( std::u16string_view rProperty, co if( rValue >>= xWindow ) { mpParentWindow = xWindow.is() ? VCLUnoHelper::GetWindow( xWindow ) - : VclPtr(); + : nullptr; return; } } -- cgit