From 59bdd7aef895256c34f81fb77767cb4972d596ae Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Tue, 18 Sep 2012 02:25:19 +0200 Subject: use the typedefs in ScRangeList Change-Id: If90c068eb4db26203612a54aa3536118650bfb43 --- sc/source/core/tool/rangelst.cxx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'sc') diff --git a/sc/source/core/tool/rangelst.cxx b/sc/source/core/tool/rangelst.cxx index c6b3bfc2dd31..7a874e8617f4 100644 --- a/sc/source/core/tool/rangelst.cxx +++ b/sc/source/core/tool/rangelst.cxx @@ -434,7 +434,7 @@ bool ScRangeList::UpdateReference( } } - vector::iterator itr = maRanges.begin(), itrEnd = maRanges.end(); + iterator itr = maRanges.begin(), itrEnd = maRanges.end(); for (; itr != itrEnd; ++itr) { ScRange* pR = *itr; @@ -781,14 +781,14 @@ void ScRangeList::DeleteArea( SCCOL nCol1, SCROW nRow1, SCTAB nTab1, const ScRange* ScRangeList::Find( const ScAddress& rAdr ) const { - vector::const_iterator itr = find_if( + const_iterator itr = find_if( maRanges.begin(), maRanges.end(), FindEnclosingRange(rAdr)); return itr == maRanges.end() ? NULL : *itr; } ScRange* ScRangeList::Find( const ScAddress& rAdr ) { - vector::iterator itr = find_if( + iterator itr = find_if( maRanges.begin(), maRanges.end(), FindEnclosingRange(rAdr)); return itr == maRanges.end() ? NULL : *itr; } @@ -824,16 +824,16 @@ void ScRangeList::Append( const ScRange& rRange ) bool ScRangeList::Intersects( const ScRange& rRange ) const { - vector::const_iterator itrEnd = maRanges.end(); - vector::const_iterator itr = + const_iterator itrEnd = maRanges.end(); + const_iterator itr = find_if(maRanges.begin(), itrEnd, FindIntersectingRange(rRange)); return itr != itrEnd; } bool ScRangeList::In( const ScRange& rRange ) const { - vector::const_iterator itrEnd = maRanges.end(); - vector::const_iterator itr = + const_iterator itrEnd = maRanges.end(); + const_iterator itr = find_if(maRanges.begin(), itrEnd, FindEnclosingRange(rRange)); return itr != itrEnd; } @@ -851,7 +851,7 @@ ScRange* ScRangeList::Remove(size_t nPos) // Out-of-bound condition. Bail out. return NULL; - vector::iterator itr = maRanges.begin(); + iterator itr = maRanges.begin(); advance(itr, nPos); ScRange* p = *itr; maRanges.erase(itr); @@ -869,7 +869,7 @@ ScRange ScRangeList::Combine() const if (maRanges.empty()) return ScRange(); - vector::const_iterator itr = maRanges.begin(), itrEnd = maRanges.end(); + const_iterator itr = maRanges.begin(), itrEnd = maRanges.end(); ScRange aRet = **itr; ++itr; for (; itr != itrEnd; ++itr) -- cgit