From a05622de4a97215260a9275e6117d9f0e1e8e87f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 10 Mar 2021 21:01:52 +0000 Subject: no need to cast to WorkWindow* to use ToTop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I47041924394b4652ed0bb69714197535784d0af1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112322 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- toolkit/source/awt/vclxtopwindow.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toolkit') 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(pWindow)->ToTop( ToTopFlags::RestoreWhenMin ); + if (pWindow) + pWindow->ToTop( ToTopFlags::RestoreWhenMin ); } void VCLXTopWindow::toBack( ) -- cgit