diff options
author | Joseph Powers <jpowers27@cox.net> | 2011-06-10 06:37:20 -0700 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2011-06-10 06:37:20 -0700 |
commit | aaeb10634130f3330fff43113044ac9c3a5de4af (patch) | |
tree | f3c9d898fb2f08b45e0a4271423525c0ffd3d9b1 /cui | |
parent | #include "cuigaldlg.hxx" was done twice. (diff) | |
download | core-aaeb10634130f3330fff43113044ac9c3a5de4af.tar.gz core-aaeb10634130f3330fff43113044ac9c3a5de4af.zip |
Replace List with vector< sal_uLong >
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/cuigaldlg.cxx | 25 | ||||
-rw-r--r-- | cui/source/inc/cuigaldlg.hxx | 13 |
2 files changed, 23 insertions, 15 deletions
diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx index 6b6e9d392b73..d39e95ac7da9 100644 --- a/cui/source/dialogs/cuigaldlg.cxx +++ b/cui/source/dialogs/cuigaldlg.cxx @@ -279,10 +279,14 @@ void SearchProgress::StartExecuteModal( const Link& rEndDialogHdl ) // - TakeThread - // -------------- -TakeThread::TakeThread( TakeProgress* pProgess, TPGalleryThemeProperties* pBrowser, List& rTakenList ) : - mpProgress ( pProgess ), - mpBrowser ( pBrowser ), - mrTakenList ( rTakenList ) +TakeThread::TakeThread( + TakeProgress* pProgess, + TPGalleryThemeProperties* pBrowser, + TokenList_impl& rTakenList +) : + mpProgress ( pProgess ), + mpBrowser ( pBrowser ), + mrTakenList ( rTakenList ) { } @@ -298,9 +302,9 @@ void SAL_CALL TakeThread::run() { String aName; INetURLObject aURL; - sal_uInt16 nEntries; + sal_uInt16 nEntries; GalleryTheme* pThm = mpBrowser->GetXChgData()->pTheme; - sal_uInt16 nPos; + sal_uInt16 nPos; GalleryProgress* pStatusProgress; { @@ -319,7 +323,7 @@ void SAL_CALL TakeThread::run() aURL = INetURLObject(*mpBrowser->aFoundList[ nPos = mpBrowser->aLbxFound.GetSelectEntryPos( i ) ]); // Position in Taken-Liste uebernehmen - mrTakenList.Insert( (void*) (sal_uLong)nPos, LIST_APPEND ); + mrTakenList.push_back( (sal_uLong)nPos ); { SolarMutexGuard aGuard; @@ -392,10 +396,9 @@ IMPL_LINK( TakeProgress, CleanUpHdl, void*, EMPTYARG ) mpBrowser->aLbxFound.SetNoSelection(); // mark all taken positions in aRemoveEntries - for( i = 0UL, nCount = maTakenList.Count(); i < nCount; ++i ) - aRemoveEntries[ (sal_uLong) maTakenList.GetObject( i ) ] = true; - - maTakenList.Clear(); + for( i = 0, nCount = maTakenList.size(); i < nCount; ++i ) + aRemoveEntries[ maTakenList[ i ] ] = true; + maTakenList.clear(); // refill found list for( i = 0, nCount = aRemoveEntries.size(); i < nCount; ++i ) diff --git a/cui/source/inc/cuigaldlg.hxx b/cui/source/inc/cuigaldlg.hxx index 79a9b58f9350..0d82fd0d2588 100644 --- a/cui/source/inc/cuigaldlg.hxx +++ b/cui/source/inc/cuigaldlg.hxx @@ -59,7 +59,8 @@ class SearchProgress; class TakeProgress; class TPGalleryThemeProperties; -typedef ::std::vector< UniString* > StringList; +typedef ::std::vector< UniString* > StringList; +typedef ::std::vector< sal_uLong > TokenList_impl; // --------------- // - FilterEntry - @@ -137,14 +138,18 @@ private: TakeProgress* mpProgress; TPGalleryThemeProperties* mpBrowser; - List& mrTakenList; + TokenList_impl& mrTakenList; virtual void SAL_CALL run(); virtual void SAL_CALL onTerminated(); public: - TakeThread( TakeProgress* pProgess, TPGalleryThemeProperties* pBrowser, List& rTakenList ); + TakeThread( + TakeProgress* pProgess, + TPGalleryThemeProperties* pBrowser, + TokenList_impl& rTakenList + ); virtual ~TakeThread(); }; @@ -160,7 +165,7 @@ private: FixedLine aFLTakeProgress; CancelButton aBtnCancel; TakeThread maTakeThread; - List maTakenList; + TokenList_impl maTakenList; DECL_LINK( ClickCancelBtn, void* ); void Terminate(); |