From be8a02364c82df5252a1ced49db29f855c85677a Mon Sep 17 00:00:00 2001 From: Philippe Jung Date: Tue, 26 May 2015 16:26:35 +0200 Subject: Rewrite all calls like Dialog(params).Execute() Replace all calls looking like ADialog(some params).Execute() by ScopedVclPtrInstance::Create(some parms)->Execute() Change-Id: I0b6f0a9ea5ef0a749ffa30ce131e9dc989604639 Reviewed-on: https://gerrit.libreoffice.org/15915 Tested-by: Jenkins Tested-by: Michael Meeks Reviewed-by: Michael Meeks --- basic/source/runtime/iosys.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'basic') diff --git a/basic/source/runtime/iosys.cxx b/basic/source/runtime/iosys.cxx index f4958278c91a..2e666ea04128 100644 --- a/basic/source/runtime/iosys.cxx +++ b/basic/source/runtime/iosys.cxx @@ -859,9 +859,9 @@ void SbiIoSystem::Shutdown() { #if defined __GNUC__ vcl::Window* pParent = Application::GetDefDialogParent(); - MessBox( pParent, WinBits( WB_OK ), OUString(), aOut ).Execute(); + ScopedVclPtrInstance::Create( pParent, WinBits( WB_OK ), OUString(), aOut )->Execute(); #else - MessBox( GetpApp()->GetDefDialogParent(), WinBits( WB_OK ), OUString(), aOut ).Execute(); + ScopedVclPtrInstance::Create( GetpApp()->GetDefDialogParent(), WinBits( WB_OK ), OUString(), aOut )->Execute(); #endif } aOut.clear(); -- cgit