From 1aee8678c83c637a2d5c1e0a716528b0bcf11de0 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 5 Aug 2021 19:46:35 +0100 Subject: drop intermediate vcl::Window from Application::GetDefDialogParent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I96be984cbefeb8e45bf49de4c50a225a46fbefb6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120089 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- basic/source/runtime/methods.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'basic/source/runtime/methods.cxx') diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index 39309f06a4f4..27da5fdac33d 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -4410,8 +4410,7 @@ void SbRtl_MsgBox(StarBASIC *, SbxArray & rPar, bool) WinBits nDialogType = nType & (16+32+64); SolarMutexGuard aSolarGuard; - vcl::Window* pParentWin = Application::GetDefDialogParent(); - weld::Widget* pParent = pParentWin ? pParentWin->GetFrameWeld() : nullptr; + weld::Widget* pParent = Application::GetDefDialogParent(); VclMessageType eType = VclMessageType::Other; -- cgit