diff options
author | Joseph Powers <jpowers27@cox.net> | 2011-06-09 21:24:14 -0700 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2011-06-09 21:24:14 -0700 |
commit | 5324c50280614f676fd17fcdd1ab4bc94d5eac5f (patch) | |
tree | 4a39035f7245c20fcc7296fac58bf24e91745c10 /dbaccess | |
parent | be5e85a1ffbc3b8c49426349cd4f19f587e3ec89 (diff) |
Change ScTreeEntryList to no longer depend on class List.
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/browser/unodatbr.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/control/dbtreelistbox.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx index 70cf1767dfff..8ab98cade86c 100644 --- a/dbaccess/source/ui/browser/unodatbr.cxx +++ b/dbaccess/source/ui/browser/unodatbr.cxx @@ -3872,9 +3872,9 @@ void SbaTableQueryBrowser::impl_cleanupDataSourceEntry( const String& _rDataSour SvTreeEntryList* pList = m_pTreeModel->GetChildList( pDataSourceEntry ); if ( pList ) { - for ( size_t i = 0, n = pList->Count(); i < n; ++i ) + for ( size_t i = 0, n = pList->size(); i < n; ++i ) { - SvLBoxEntry* pEntryLoop = static_cast<SvLBoxEntry*>(pList->GetObject( i )); + SvLBoxEntry* pEntryLoop = static_cast<SvLBoxEntry*>((*pList)[ i ]); DBTreeListUserData* pData = static_cast< DBTreeListUserData* >( pEntryLoop->GetUserData() ); pEntryLoop->SetUserData( NULL ); delete pData; diff --git a/dbaccess/source/ui/control/dbtreelistbox.cxx b/dbaccess/source/ui/control/dbtreelistbox.cxx index 4a789c511a04..15cd74538c54 100644 --- a/dbaccess/source/ui/control/dbtreelistbox.cxx +++ b/dbaccess/source/ui/control/dbtreelistbox.cxx @@ -126,10 +126,10 @@ SvLBoxEntry* DBTreeListBox::GetEntryPosByName( const String& aName, SvLBoxEntry* SvLBoxEntry* pEntry = NULL; if ( pChilds ) { - size_t nCount = pChilds->Count(); + size_t nCount = pChilds->size(); for (size_t i = 0; i < nCount; ++i) { - pEntry = static_cast<SvLBoxEntry*>(pChilds->GetObject( i )); + pEntry = static_cast<SvLBoxEntry*>((*pChilds)[ i ]); SvLBoxString* pItem = (SvLBoxString*)(pEntry->GetFirstItem(SV_ITEM_ID_LBOXSTRING)); if ( pItem->GetText().Equals(aName) ) { |