diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-02-07 15:54:45 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-02-07 18:43:31 +0100 |
commit | bf28399df0b73364b12309032e4a8b571389c2cf (patch) | |
tree | d5a3d4d36ae82fec4b5d61d2629ba2a91ee8c6b7 /basctl/source/basicide/moduldl2.cxx | |
parent | aef614d0931d9b1ef0431ebc6aa8aad38d0445c1 (diff) |
auto_ptr -> heap_ptr
Change-Id: I401505ee15f71e8655570233b953951aa22ad668
Diffstat (limited to 'basctl/source/basicide/moduldl2.cxx')
-rw-r--r-- | basctl/source/basicide/moduldl2.cxx | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx index a27cf45f7590..475d182ec29f 100644 --- a/basctl/source/basicide/moduldl2.cxx +++ b/basctl/source/basicide/moduldl2.cxx @@ -1597,26 +1597,20 @@ void createLibImpl( Window* pWin, const ScriptDocument& rDocument, sal_uInt16 nMode = pBasicBox->GetMode(); bool bDlgMode = ( nMode & BROWSEMODE_DIALOGS ) && !( nMode & BROWSEMODE_MODULES ); sal_uInt16 nId = bDlgMode ? RID_IMG_DLGLIB : RID_IMG_MODLIB; - SAL_WNODEPRECATED_DECLARATIONS_PUSH + o3tl::heap_ptr<Entry> e(new Entry(OBJ_TYPE_LIBRARY)); SvTreeListEntry* pNewLibEntry = pBasicBox->AddEntry( aLibName, Image( IDEResId( nId ) ), - pRootEntry, false, - std::auto_ptr<Entry>(new Entry(OBJ_TYPE_LIBRARY)) - ); - SAL_WNODEPRECATED_DECLARATIONS_POP + pRootEntry, false, &e); DBG_ASSERT( pNewLibEntry, "InsertEntry fehlgeschlagen!" ); if( pNewLibEntry ) { - SAL_WNODEPRECATED_DECLARATIONS_PUSH + o3tl::heap_ptr<Entry>(new Entry(OBJ_TYPE_MODULE)); SvTreeListEntry* pEntry_ = pBasicBox->AddEntry( aModName, Image( IDEResId( RID_IMG_MODULE ) ), - pNewLibEntry, false, - std::auto_ptr<Entry>(new Entry(OBJ_TYPE_MODULE)) - ); - SAL_WNODEPRECATED_DECLARATIONS_POP + pNewLibEntry, false, &e); DBG_ASSERT( pEntry_, "InsertEntry fehlgeschlagen!" ); pBasicBox->SetCurEntry( pEntry_ ); pBasicBox->Select( pBasicBox->GetCurEntry() ); // OV-Bug?! |