summaryrefslogtreecommitdiff
path: root/basic/source/runtime/inputbox.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-08-05 19:46:35 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-08-06 10:55:18 +0200
commit1aee8678c83c637a2d5c1e0a716528b0bcf11de0 (patch)
tree922a5e37d98f547bf0880c2e57a8bbedd0709a63 /basic/source/runtime/inputbox.cxx
parent373da7a00986ea95ce959242c0876a5eaf18a1b6 (diff)
drop intermediate vcl::Window from Application::GetDefDialogParent
Change-Id: I96be984cbefeb8e45bf49de4c50a225a46fbefb6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120089 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'basic/source/runtime/inputbox.cxx')
-rw-r--r--basic/source/runtime/inputbox.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/basic/source/runtime/inputbox.cxx b/basic/source/runtime/inputbox.cxx
index 50b19ee51273..e409b1352bfd 100644
--- a/basic/source/runtime/inputbox.cxx
+++ b/basic/source/runtime/inputbox.cxx
@@ -133,8 +133,7 @@ void SbRtl_InputBox(StarBASIC *, SbxArray & rPar, bool)
nX = rPar.Get(4)->GetLong();
nY = rPar.Get(5)->GetLong();
}
- vcl::Window* pParent = Application::GetDefDialogParent();
- SvRTLInputBox aDlg(pParent ? pParent->GetFrameWeld() : nullptr,rPrompt,aTitle,aDefault,nX,nY);
+ SvRTLInputBox aDlg(Application::GetDefDialogParent(), rPrompt, aTitle, aDefault, nX, nY);
aDlg.run();
rPar.Get(0)->PutString(aDlg.GetText());
}