diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-05-28 21:35:43 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-05-29 12:16:28 +0000 |
commit | ba81e5c6bd420b41a84ade6ccd774011a8089f7f (patch) | |
tree | 554d0904466549cf2ba630e361e457fdcec22c98 /sc/source/ui/navipi | |
parent | 5fe011ae025d7d354ca0647189524843a444ffba (diff) |
tdf#91702 - fix stack-based MessBox allocation.
Change-Id: I62dd164e281911d9db3de453789a5badc7cd5fd7
Reviewed-on: https://gerrit.libreoffice.org/15954
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sc/source/ui/navipi')
-rw-r--r-- | sc/source/ui/navipi/scenwnd.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/navipi/scenwnd.cxx b/sc/source/ui/navipi/scenwnd.cxx index 22ebb99c5eca..eedca0337742 100644 --- a/sc/source/ui/navipi/scenwnd.cxx +++ b/sc/source/ui/navipi/scenwnd.cxx @@ -188,7 +188,7 @@ void ScScenarioListBox::EditScenario() void ScScenarioListBox::DeleteScenario( bool bQueryBox ) { if( GetSelectEntryCount() > 0 ) - if( !bQueryBox || (::QueryBox( 0, WinBits( WB_YES_NO | WB_DEF_YES ), ScGlobal::GetRscString( STR_QUERY_DELSCENARIO ) ).Execute() == RET_YES) ) + if( !bQueryBox || (ScopedVclPtr<QueryBox>::Create( nullptr, WinBits( WB_YES_NO | WB_DEF_YES ), ScGlobal::GetRscString( STR_QUERY_DELSCENARIO ) )->Execute() == RET_YES) ) ExecuteScenarioSlot( SID_DELETE_SCENARIO ); } |