diff options
author | Joseph Powers <jpowers27@cox.net> | 2011-05-30 11:17:25 -0700 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2011-06-01 04:55:18 -0700 |
commit | 3c160621091530d2e3cc610adcfe150e760a8c51 (patch) | |
tree | c51334ebfc16a60871af62bc5a44cacc934d8933 /svtools/inc | |
parent | 53bf10408dc5c90f99905bad9e36d46196d478e3 (diff) |
Replace List in SvTreeList with a vector<>
Diffstat (limited to 'svtools/inc')
-rw-r--r-- | svtools/inc/svtools/treelist.hxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/svtools/inc/svtools/treelist.hxx b/svtools/inc/svtools/treelist.hxx index c9845b1c4df5..1921687061a3 100644 --- a/svtools/inc/svtools/treelist.hxx +++ b/svtools/inc/svtools/treelist.hxx @@ -32,6 +32,7 @@ #include "svtools/svtdllapi.h" #include <tools/solar.h> #include <tools/list.hxx> +#include <vector> #include <tools/table.hxx> #include <tools/link.hxx> @@ -183,11 +184,13 @@ struct SvSortData SvListEntry* pRight; }; +typedef ::std::vector< SvListView* > SvListView_impl; + class SVT_DLLPUBLIC SvTreeList { friend class SvListView; - List aViewList; + SvListView_impl aViewList; sal_uLong nEntryCount; Link aCloneLink; @@ -253,10 +256,10 @@ public: void InsertView( SvListView* ); void RemoveView( SvListView* ); sal_uLong GetViewCount() const - { return aViewList.Count(); } + { return aViewList.size(); } - SvListView* GetView(sal_uLong nPos) const - { return (SvListView*)aViewList.GetObject(nPos); } + SvListView* GetView( sal_uLong nPos ) const + { return ( nPos < aViewList.size() ) ? aViewList[ nPos ] : NULL; } void Broadcast( sal_uInt16 nActionId, |