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/source/contnr/treelist.cxx | |
parent | a19b6e4149cf264846d7c67f22f496619b70d65b (diff) |
Put typedef inside class scope.
Change-Id: Ied6b5c1714b23a7f64b5b8271979deb21350f76b
Diffstat (limited to 'svtools/source/contnr/treelist.cxx')
-rw-r--r-- | svtools/source/contnr/treelist.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
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; } } |