From 61b224f392eb856bf4cfa0c04c68202a463cbdbf Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 20 Mar 2015 11:27:10 +0200 Subject: vclwidget: fixup locally allocated vcl::Window objects They need to be wrapped in ScopedVclPtr in order to be disposed properly. Change-Id: Ib64dba353774f54711e4de7f5d15d859c6a4dc7e --- 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 a8e7c3e5bfc1..1f7d8db9aa90 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) { - VclPtr aPasswdDlg(new SfxPasswordDialog(0)); + ScopedVclPtr aPasswdDlg(new SfxPasswordDialog(0)); aPasswdDlg->SetMinLen(0); if (!aPasswdDlg->Execute()) return false; @@ -303,7 +303,7 @@ throw (RuntimeException, std::exception) int unsuccessfulAttempts = 0; while (true) { - VclPtr aPasswdDlg(new SfxPasswordDialog(0)); + ScopedVclPtr aPasswdDlg(new SfxPasswordDialog(0)); aPasswdDlg->SetMinLen(0); if (!aPasswdDlg->Execute()) return com::sun::star::ui::dialogs::ExecutableDialogResults::CANCEL; -- cgit