diff options
Diffstat (limited to 'vcl/source/window/floatwin.cxx')
-rw-r--r-- | vcl/source/window/floatwin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx index 4c2eae984c54..676c3f0dbb06 100644 --- a/vcl/source/window/floatwin.cxx +++ b/vcl/source/window/floatwin.cxx @@ -597,7 +597,7 @@ bool FloatingWindow::Notify( NotifyEvent& rNEvt ) void FloatingWindow::LogicInvalidate(const Rectangle* /*pRectangle*/) { - if (vcl::Window* pParent = GetParentWithLOKNotifier()) + if (VclPtr<vcl::Window> pParent = GetParentWithLOKNotifier()) { const vcl::ILibreOfficeKitNotifier* pNotifier = pParent->GetLOKNotifier(); pNotifier->notifyWindow(GetLOKWindowId(), "invalidate"); @@ -613,7 +613,7 @@ void FloatingWindow::StateChanged( StateChangedType nType ) SystemWindow::StateChanged( nType ); - if (vcl::Window* pParent = GetParentWithLOKNotifier()) + if (VclPtr<vcl::Window> pParent = GetParentWithLOKNotifier()) { const vcl::ILibreOfficeKitNotifier* pNotifier = pParent->GetLOKNotifier(); if (nType == StateChangedType::InitShow && IsVisible()) |