summaryrefslogtreecommitdiff
path: root/uui/source/passworddlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'uui/source/passworddlg.cxx')
-rw-r--r--uui/source/passworddlg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/uui/source/passworddlg.cxx b/uui/source/passworddlg.cxx
index c855226e5037..b5f3e99d519a 100644
--- a/uui/source/passworddlg.cxx
+++ b/uui/source/passworddlg.cxx
@@ -44,7 +44,7 @@ PasswordDialog::PasswordDialog(vcl::Window* _pParent,
const sal_uInt16 nOpenToModifyErrStrId = bOpenToModify ? STR_ERROR_PASSWORD_TO_MODIFY_WRONG : STR_ERROR_PASSWORD_TO_OPEN_WRONG;
const sal_uInt16 nErrStrId = bIsSimplePasswordRequest ? STR_ERROR_SIMPLE_PASSWORD_WRONG : nOpenToModifyErrStrId;
OUString aErrorMsg(ResId(nErrStrId, *pResourceMgr).toString());
- VclPtr<MessageDialog> aErrorBox(new MessageDialog(GetParent(), aErrorMsg));
+ ScopedVclPtr<MessageDialog> aErrorBox(new MessageDialog(GetParent(), aErrorMsg));
aErrorBox->Execute();
}
@@ -106,7 +106,7 @@ IMPL_LINK_NOARG(PasswordDialog, OKHdl_Impl)
if (m_pEDConfirmPassword->IsVisible() && bPasswdMismatch)
{
- VclPtr<MessageDialog> aErrorBox(new MessageDialog(this, aPasswdMismatch));
+ ScopedVclPtr<MessageDialog> aErrorBox(new MessageDialog(this, aPasswdMismatch));
aErrorBox->Execute();
}
else if (bValid)