summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-05-18 17:12:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-05-18 17:14:16 +0100
commitac5368bf67192fc9f1c4633b20b15f4d8847f5e2 (patch)
tree86db471e10862e915d67df859caa6bef004599d7 /svx
parentc8956a1eb4c2297685e85df4be3efa176acbc929 (diff)
VclPtr: fix recovery dialogs asserts on exit
Change-Id: I3f3fcd13cbcf86eb431d499d3394a313dbdf7e47
Diffstat (limited to 'svx')
-rw-r--r--svx/source/unodraw/recoveryui.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/unodraw/recoveryui.cxx b/svx/source/unodraw/recoveryui.cxx
index 614fcef5d2ad..ba9b5c83e54f 100644
--- a/svx/source/unodraw/recoveryui.cxx
+++ b/svx/source/unodraw/recoveryui.cxx
@@ -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();