diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-10-01 15:27:12 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-02 16:49:37 +0200 |
commit | 8f6f93adfe96e11cc5fc9d9dd46a1259ed5344ee (patch) | |
tree | b925cb2de29c3daf528147b4d045451512ab6cf3 /basctl/source/basicide/moduldl2.cxx | |
parent | 3ef9fac503f3bb0478f826fd2ef3347a21c0cd46 (diff) |
-Werror,-Wdeprecated-declarations
Change-Id: I22101fec4b75e567153c6401ab754e1a5e158a77
Diffstat (limited to 'basctl/source/basicide/moduldl2.cxx')
-rw-r--r-- | basctl/source/basicide/moduldl2.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx index b75309253168..c1b76c5ea91f 100644 --- a/basctl/source/basicide/moduldl2.cxx +++ b/basctl/source/basicide/moduldl2.cxx @@ -1620,22 +1620,26 @@ 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 SvTreeListEntry* pNewLibEntry = pBasicBox->AddEntry( aLibName, Image( IDEResId( nId ) ), pRootEntry, false, std::auto_ptr<Entry>(new Entry(OBJ_TYPE_LIBRARY)) ); + SAL_WNODEPRECATED_DECLARATIONS_POP DBG_ASSERT( pNewLibEntry, "InsertEntry fehlgeschlagen!" ); if( pNewLibEntry ) { + SAL_WNODEPRECATED_DECLARATIONS_PUSH 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 DBG_ASSERT( pEntry_, "InsertEntry fehlgeschlagen!" ); pBasicBox->SetCurEntry( pEntry_ ); pBasicBox->Select( pBasicBox->GetCurEntry() ); // OV-Bug?! |