From 075d472a9d120431f0b8731e4dcfe3e8b4ded521 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 2 Oct 2013 16:41:03 +0200 Subject: Use std::auto_ptr::reset where applicable (avoids warnings about std::auto_ptr ctor being deprecated) Change-Id: I39d2d155c0bc62ca77a30c02428ea39102213f42 --- cui/source/dialogs/passwdomdlg.cxx | 2 +- cui/source/options/treeopt.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'cui/source') diff --git a/cui/source/dialogs/passwdomdlg.cxx b/cui/source/dialogs/passwdomdlg.cxx index a7645088fe27..b73b71d38f36 100644 --- a/cui/source/dialogs/passwdomdlg.cxx +++ b/cui/source/dialogs/passwdomdlg.cxx @@ -228,7 +228,7 @@ PasswordToOpenModifyDialog::PasswordToOpenModifyDialog( bool bIsPasswordToModify ) : SfxModalDialog( pParent, CUI_RES( RID_DLG_PASSWORD_TO_OPEN_MODIFY ) ) { - m_pImpl = std::auto_ptr< PasswordToOpenModifyDialog_Impl >( + m_pImpl.reset( new PasswordToOpenModifyDialog_Impl( this, nMinPasswdLen, nMaxPasswdLen, bIsPasswordToModify ) ); FreeResource(); diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx index 8adb5c356b9b..0ece6755e06d 100644 --- a/cui/source/options/treeopt.cxx +++ b/cui/source/options/treeopt.cxx @@ -2258,7 +2258,7 @@ short OfaTreeOptionsDialog::Execute() { // collect all DictionaryList Events while the dialog is executed Reference xDictionaryList(SvxGetDictionaryList()); - pClamp = ::std::auto_ptr< SvxDicListChgClamp >( new SvxDicListChgClamp( xDictionaryList ) ); + pClamp.reset( new SvxDicListChgClamp( xDictionaryList ) ); } short nRet = SfxModalDialog::Execute(); -- cgit