summaryrefslogtreecommitdiff
path: root/sd/source/ui
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui')
-rw-r--r--sd/source/ui/framework/factories/BasicViewFactory.cxx2
-rw-r--r--sd/source/ui/slideshow/slideshowimpl.cxx2
2 files changed, 2 insertions, 2 deletions
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<XResource> 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<vcl::Window>();
+ : nullptr;
return;
}
}