summaryrefslogtreecommitdiff
path: root/writerperfect
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-02-11 14:42:23 +0200
committerMichael Meeks <michael.meeks@collabora.com>2015-04-09 22:17:00 +0100
commit00f2787a4a68633206635743298926bf2e65a8fa (patch)
treeefc3a4f02b3d8acd69d25071499be5a475cb0338 /writerperfect
parentb3dcb2996b70caabda1939c9e85545c97d78404a (diff)
vclwidgets: wrap all vcl::Window subclasses allocated on stack in VclPtr
Change-Id: Ia8b0d84bbf69f9d8f85505d019acdded14e25133 Conflicts: sw/qa/tiledrendering/tiledrendering.cxx
Diffstat (limited to 'writerperfect')
-rw-r--r--writerperfect/source/writer/WordPerfectImportFilter.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/writerperfect/source/writer/WordPerfectImportFilter.cxx b/writerperfect/source/writer/WordPerfectImportFilter.cxx
index 5294e2e030f3..a8e7c3e5bfc1 100644
--- a/writerperfect/source/writer/WordPerfectImportFilter.cxx
+++ b/writerperfect/source/writer/WordPerfectImportFilter.cxx
@@ -119,11 +119,11 @@ throw (RuntimeException, std::exception)
int unsuccessfulAttempts = 0;
while (true)
{
- SfxPasswordDialog aPasswdDlg(0);
- aPasswdDlg.SetMinLen(0);
- if (!aPasswdDlg.Execute())
+ VclPtr<SfxPasswordDialog> aPasswdDlg(new SfxPasswordDialog(0));
+ aPasswdDlg->SetMinLen(0);
+ if (!aPasswdDlg->Execute())
return false;
- OUString aPasswd = aPasswdDlg.GetPassword();
+ OUString aPasswd = aPasswdDlg->GetPassword();
aUtf8Passwd = OUStringToOString(aPasswd, RTL_TEXTENCODING_UTF8);
if (libwpd::WPD_PASSWORD_MATCH_OK == libwpd::WPDocument::verifyPassword(&input, aUtf8Passwd.getStr()))
break;
@@ -303,11 +303,11 @@ throw (RuntimeException, std::exception)
int unsuccessfulAttempts = 0;
while (true)
{
- SfxPasswordDialog aPasswdDlg(0);
- aPasswdDlg.SetMinLen(0);
- if (!aPasswdDlg.Execute())
+ VclPtr<SfxPasswordDialog> aPasswdDlg(new SfxPasswordDialog(0));
+ aPasswdDlg->SetMinLen(0);
+ if (!aPasswdDlg->Execute())
return com::sun::star::ui::dialogs::ExecutableDialogResults::CANCEL;
- msPassword = aPasswdDlg.GetPassword().getStr();
+ msPassword = aPasswdDlg->GetPassword().getStr();
aUtf8Passwd = OUStringToOString(msPassword, RTL_TEXTENCODING_UTF8);
if (libwpd::WPD_PASSWORD_MATCH_OK == libwpd::WPDocument::verifyPassword(&input, aUtf8Passwd.getStr()))
break;