summaryrefslogtreecommitdiff
path: root/framework/source/services/autorecovery.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/services/autorecovery.cxx')
-rw-r--r--framework/source/services/autorecovery.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx
index b235a624cd4e..0a23fa606e66 100644
--- a/framework/source/services/autorecovery.cxx
+++ b/framework/source/services/autorecovery.cxx
@@ -4205,11 +4205,11 @@ void AutoRecovery::impl_showFullDiscError()
if (sBackupPath.getLength() < 1)
sBackupPath = sBackupURL;
- ErrorBox dlgError(
- 0, WB_OK,
+ ScopedVclPtrInstance<ErrorBox> dlgError(
+ nullptr, WB_OK,
sMsg.replaceAll("%PATH", sBackupPath));
- dlgError.SetButtonText(dlgError.GetButtonId(0), sBtn);
- dlgError.Execute();
+ dlgError->SetButtonText(dlgError->GetButtonId(0), sBtn);
+ dlgError->Execute();
}
void AutoRecovery::impl_establishProgress(const AutoRecovery::TDocumentInfo& rInfo ,