diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-10-12 00:48:34 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-10-12 01:33:02 -0400 |
commit | 5c635140c7aa4b31d23ea96c8d10be3b3a44d8f7 (patch) | |
tree | 839d5b66936ed76eace9a73f713964949796776a /svtools | |
parent | a19b6e4149cf264846d7c67f22f496619b70d65b (diff) |
Put typedef inside class scope.
Change-Id: Ied6b5c1714b23a7f64b5b8271979deb21350f76b
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/inc/svtools/treelist.hxx | 6 | ||||
-rw-r--r-- | svtools/source/contnr/treelist.cxx | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/svtools/inc/svtools/treelist.hxx b/svtools/inc/svtools/treelist.hxx index 702f24939a39..2534052a1487 100644 --- a/svtools/inc/svtools/treelist.hxx +++ b/svtools/inc/svtools/treelist.hxx @@ -211,13 +211,13 @@ struct SvSortData SvListEntry* pRight; }; -typedef ::std::vector< SvListView* > SvListView_impl; - class SVT_DLLPUBLIC SvTreeList { + typedef std::vector<SvListView*> ListViewsType; + friend class SvListView; - SvListView_impl aViewList; + ListViewsType aViewList; sal_uLong nEntryCount; Link aCloneLink; diff --git a/svtools/source/contnr/treelist.cxx b/svtools/source/contnr/treelist.cxx index 83bbd58bd6c3..0f930f552ed3 100644 --- a/svtools/source/contnr/treelist.cxx +++ b/svtools/source/contnr/treelist.cxx @@ -308,10 +308,12 @@ void SvTreeList::InsertView( SvListView* pView ) void SvTreeList::RemoveView( SvListView* pView ) { - for ( SvListView_impl::iterator it = aViewList.begin(); it != aViewList.end(); ++it ) { - if ( *it == pView ) { + for ( ListViewsType::iterator it = aViewList.begin(); it != aViewList.end(); ++it ) + { + if ( *it == pView ) + { aViewList.erase( it ); - nRefCount--; + --nRefCount; break; } } |