Kaydet (Commit) 5c635140 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Put typedef inside class scope.

Change-Id: Ied6b5c1714b23a7f64b5b8271979deb21350f76b
üst a19b6e41
......@@ -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;
......
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment