summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-10 21:01:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-03-11 14:36:52 +0100
commita05622de4a97215260a9275e6117d9f0e1e8e87f (patch)
tree36a144d78690a9e4040122ec3eb2a9671f95d25e /toolkit
parent5649c4b26401b56736b9eb56ef47b73b95e43c67 (diff)
no need to cast to WorkWindow* to use ToTop
Change-Id: I47041924394b4652ed0bb69714197535784d0af1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112322 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/vclxtopwindow.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolkit/source/awt/vclxtopwindow.cxx b/toolkit/source/awt/vclxtopwindow.cxx
index 965312e6954b..a500029eed0d 100644
--- a/toolkit/source/awt/vclxtopwindow.cxx
+++ b/toolkit/source/awt/vclxtopwindow.cxx
@@ -107,8 +107,8 @@ void VCLXTopWindow::toFront( )
SolarMutexGuard aGuard;
vcl::Window* pWindow = VCLXContainer::GetWindow();
- if ( pWindow )
- static_cast<WorkWindow*>(pWindow)->ToTop( ToTopFlags::RestoreWhenMin );
+ if (pWindow)
+ pWindow->ToTop( ToTopFlags::RestoreWhenMin );
}
void VCLXTopWindow::toBack( )