diff options
author | Joseph Powers <jpowers27@cox.net> | 2010-12-31 12:57:40 -0800 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2010-12-31 12:57:40 -0800 |
commit | aae26bf0dc66d2fe3e6bbf2040cb15566552ff76 (patch) | |
tree | 82afd28263de9429700c8809b0eace3e01f3e368 /sw/source/ui/utlui | |
parent | 5cdf4b199a6970d9099f71b5dd565c38a5d0471f (diff) |
Remove DECLARE_LIST( SfxMediumList, SfxMedium* )
Diffstat (limited to 'sw/source/ui/utlui')
-rw-r--r-- | sw/source/ui/utlui/glbltree.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sw/source/ui/utlui/glbltree.cxx b/sw/source/ui/utlui/glbltree.cxx index 6d911e3c8aa1..66eddb7265b8 100644 --- a/sw/source/ui/utlui/glbltree.cxx +++ b/sw/source/ui/utlui/glbltree.cxx @@ -1380,18 +1380,17 @@ IMPL_LINK( SwGlobalTree, DialogClosedHdl, sfx2::FileDialogHelper*, _pFileDlg ) SfxMediumList* pMedList = pDocInserter->CreateMediumList(); if ( pMedList ) { - Sequence< OUString >aFileNames( pMedList->Count() ); + Sequence< OUString >aFileNames( pMedList->size() ); OUString* pFileNames = aFileNames.getArray(); - SfxMedium* pMed = pMedList->First(); sal_Int32 nPos = 0; - while ( pMed ) + for ( size_t i = 0, n = pMedList->size(); i < n; ++i ) { + SfxMedium* pMed = pMedList->at( i ); String sFileName = pMed->GetURLObject().GetMainURL( INetURLObject::NO_DECODE ); sFileName += sfx2::cTokenSeperator; sFileName += pMed->GetFilter()->GetFilterName(); sFileName += sfx2::cTokenSeperator; pFileNames[nPos++] = sFileName; - pMed = pMedList->Next(); } delete pMedList; InsertRegion( pDocContent, aFileNames ); |