Kaydet (Commit) ac5368bf authored tarafından Caolán McNamara's avatar Caolán McNamara

VclPtr: fix recovery dialogs asserts on exit

Change-Id: I3f3fcd13cbcf86eb431d499d3394a313dbdf7e47
üst c8956a1e
......@@ -245,7 +245,7 @@ bool RecoveryUI::impl_doEmergencySave()
css::uno::Reference< css::frame::XStatusListener > xCore(pCore);
// create dialog for this operation and bind it to the used core service
VclPtrInstance<svxdr::SaveDialog> xDialog(m_pParentWindow, pCore);
ScopedVclPtrInstance<svxdr::SaveDialog> xDialog(m_pParentWindow, pCore);
// start the dialog
short nRet = xDialog->Execute();
......@@ -260,7 +260,7 @@ void RecoveryUI::impl_doRecovery()
// create all needed dialogs for this operation
// and bind it to the used core service
VclPtrInstance<svxdr::RecoveryDialog> xDialog(m_pParentWindow, pCore);
ScopedVclPtrInstance<svxdr::RecoveryDialog> xDialog(m_pParentWindow, pCore);
// start the dialog
xDialog->Execute();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment