summaryrefslogtreecommitdiff
path: root/svtools/source/dialogs/restartdialog.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/dialogs/restartdialog.cxx')
-rw-r--r--svtools/source/dialogs/restartdialog.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/dialogs/restartdialog.cxx b/svtools/source/dialogs/restartdialog.cxx
index 7bef79758c47..828188f7e034 100644
--- a/svtools/source/dialogs/restartdialog.cxx
+++ b/svtools/source/dialogs/restartdialog.cxx
@@ -83,7 +83,7 @@ void svtools::executeRestartDialog(
css::uno::Reference< css::uno::XComponentContext > const & context,
vcl::Window * parent, RestartReason reason)
{
- if (RestartDialog(parent, reason).Execute()) {
+ if (ScopedVclPtrInstance<RestartDialog>::Create(parent, reason)->Execute()) {
css::task::OfficeRestartManager::get(context)->requestRestart(
css::uno::Reference< css::task::XInteractionHandler >());
}