[Libreoffice-commits] core.git: toolkit/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Mar 11 13:37:34 UTC 2021
toolkit/source/awt/vclxtopwindow.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit a05622de4a97215260a9275e6117d9f0e1e8e87f
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Mar 10 21:01:52 2021 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Mar 11 14:36:52 2021 +0100
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 at redhat.com>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
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( )
More information about the Libreoffice-commits
mailing list