From 8a65284fe31e6c0a927cb88b75df7845cd248572 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Tue, 31 Mar 2015 23:04:14 +0100 Subject: Automated conversion of VclPtr construction to use Instance template. Change-Id: I8be9141b9653e73ebd23a5a3d810f240c376f97e --- writerperfect/source/writer/WordPerfectImportFilter.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'writerperfect') diff --git a/writerperfect/source/writer/WordPerfectImportFilter.cxx b/writerperfect/source/writer/WordPerfectImportFilter.cxx index 1f7d8db9aa90..54c671294cc0 100644 --- a/writerperfect/source/writer/WordPerfectImportFilter.cxx +++ b/writerperfect/source/writer/WordPerfectImportFilter.cxx @@ -119,7 +119,7 @@ throw (RuntimeException, std::exception) int unsuccessfulAttempts = 0; while (true) { - ScopedVclPtr aPasswdDlg(new SfxPasswordDialog(0)); + ScopedVclPtrInstance< SfxPasswordDialog > aPasswdDlg(0); aPasswdDlg->SetMinLen(0); if (!aPasswdDlg->Execute()) return false; @@ -303,7 +303,7 @@ throw (RuntimeException, std::exception) int unsuccessfulAttempts = 0; while (true) { - ScopedVclPtr aPasswdDlg(new SfxPasswordDialog(0)); + ScopedVclPtrInstance< SfxPasswordDialog > aPasswdDlg(0); aPasswdDlg->SetMinLen(0); if (!aPasswdDlg->Execute()) return com::sun::star::ui::dialogs::ExecutableDialogResults::CANCEL; -- cgit v1.2.3