diff options
author | Joseph Powers <jpowers27@cox.net> | 2011-05-26 20:16:11 -0700 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2011-05-26 20:16:11 -0700 |
commit | 0f994a061c089ae1df2c1c1a5f4628f34a28212c (patch) | |
tree | b22a29ff6218115e7dfe897c69d4e303640fdda7 /dbaccess/source/ui | |
parent | 3a2a53da020e66b9a9505b95bb0523d06ba7174e (diff) |
Revert TreeList to vector<> conversion.
This fixes a bug in Options->Path. I'll need to rework the conversion
later.
Diffstat (limited to 'dbaccess/source/ui')
-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 0230c5cc8f95..11f7d3cb3abe 100644 --- a/dbaccess/source/ui/browser/unodatbr.cxx +++ b/dbaccess/source/ui/browser/unodatbr.cxx @@ -3866,9 +3866,9 @@ void SbaTableQueryBrowser::impl_cleanupDataSourceEntry( const String& _rDataSour SvTreeEntryList* pList = m_pTreeModel->GetChildList( pDataSourceEntry ); if ( pList ) { - for ( size_t i = 0, n = pList->size(); i < n; ++i ) + for ( size_t i = 0, n = pList->Count(); i < n; ++i ) { - SvLBoxEntry* pEntryLoop = static_cast<SvLBoxEntry*>((*pList)[ i ]); + SvLBoxEntry* pEntryLoop = static_cast<SvLBoxEntry*>(pList->GetObject( 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 15cd74538c54..4a789c511a04 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->size(); + size_t nCount = pChilds->Count(); for (size_t i = 0; i < nCount; ++i) { - pEntry = static_cast<SvLBoxEntry*>((*pChilds)[ i ]); + pEntry = static_cast<SvLBoxEntry*>(pChilds->GetObject( i )); SvLBoxString* pItem = (SvLBoxString*)(pEntry->GetFirstItem(SV_ITEM_ID_LBOXSTRING)); if ( pItem->GetText().Equals(aName) ) { |