From 5d5f447e738f159297b3d7bf10220c3cdfe7e2fa Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Thu, 16 Apr 2015 22:18:45 +0100 Subject: UnoControls, toolkit, uuoi, xmlsecurity: convert new to ::Create. Change-Id: I7b8c7ece656589c50fb066e9fa1565fd59f930da --- uui/source/iahndl-authentication.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'uui/source/iahndl-authentication.cxx') diff --git a/uui/source/iahndl-authentication.cxx b/uui/source/iahndl-authentication.cxx index 89847aa41be3..43f0f29a409b 100644 --- a/uui/source/iahndl-authentication.cxx +++ b/uui/source/iahndl-authentication.cxx @@ -89,7 +89,7 @@ executeLoginDialog( nFlags |= LF_NO_USESYSCREDS; VclPtr< LoginDialog > xDialog( - new LoginDialog(pParent, nFlags, rInfo.GetServer(), rRealm)); + VclPtr::Create(pParent, nFlags, rInfo.GetServer(), rRealm)); if (!rInfo.GetErrorText().isEmpty()) xDialog->SetErrorText(rInfo.GetErrorText()); xDialog->SetName(rInfo.GetUserName()); @@ -418,7 +418,7 @@ executeMasterPasswordDialog( if( nMode == task::PasswordRequestMode_PASSWORD_CREATE ) { VclPtr< MasterPasswordCreateDialog > xDialog( - new MasterPasswordCreateDialog(pParent, xManager.get())); + VclPtr::Create(pParent, xManager.get())); rInfo.SetResult(xDialog->Execute() == RET_OK ? ERRCODE_BUTTON_OK : ERRCODE_BUTTON_CANCEL); aMaster = OUStringToOString( @@ -427,7 +427,7 @@ executeMasterPasswordDialog( else { VclPtr< MasterPasswordDialog > xDialog( - new MasterPasswordDialog(pParent, nMode, xManager.get())); + VclPtr::Create(pParent, nMode, xManager.get())); rInfo.SetResult(xDialog->Execute() == RET_OK ? ERRCODE_BUTTON_OK : ERRCODE_BUTTON_CANCEL); aMaster = OUStringToOString( @@ -518,7 +518,7 @@ executePasswordDialog( if (bIsSimplePasswordRequest) { VclPtr< PasswordDialog > pDialog( - new PasswordDialog( pParent, nMode, xManager.get(), aDocName, + VclPtr::Create( pParent, nMode, xManager.get(), aDocName, bIsPasswordToModify, bIsSimplePasswordRequest ) ); pDialog->SetMinLen(0); @@ -542,7 +542,7 @@ executePasswordDialog( else // enter password or reenter password { VclPtr< PasswordDialog > pDialog( - new PasswordDialog( pParent, nMode, xManager.get(), aDocName, + VclPtr::Create( pParent, nMode, xManager.get(), aDocName, bIsPasswordToModify, bIsSimplePasswordRequest ) ); pDialog->SetMinLen(0); @@ -752,7 +752,7 @@ UUIInteractionHelper::handleAuthFallbackRequest( OUString & instructions, uno::Sequence< uno::Reference< task::XInteractionContinuation > > const & rContinuations ) { vcl::Window * pParent = getParentProperty( ); - AuthFallbackDlg *dlg = new AuthFallbackDlg( pParent, instructions, url ); + VclPtrInstance dlg( pParent, instructions, url ); int retCode = dlg->Execute( ); uno::Reference< task::XInteractionAbort > xAbort; uno::Reference< ucb::XInteractionAuthFallback > xAuthFallback; -- cgit v1.2.3