summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-09-18 02:25:19 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-09-18 06:22:19 +0200
commit59bdd7aef895256c34f81fb77767cb4972d596ae (patch)
tree06b0121dd3d917c47ed5f6bcf2e648935f7ab136 /sc
parentf8f449c581c252a8ef5eb02ca2502c7abdd8317d (diff)
use the typedefs in ScRangeList
Change-Id: If90c068eb4db26203612a54aa3536118650bfb43
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/rangelst.cxx18
1 files changed, 9 insertions, 9 deletions
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<ScRange*>::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<ScRange*>::const_iterator itr = find_if(
+ const_iterator itr = find_if(
maRanges.begin(), maRanges.end(), FindEnclosingRange<ScAddress>(rAdr));
return itr == maRanges.end() ? NULL : *itr;
}
ScRange* ScRangeList::Find( const ScAddress& rAdr )
{
- vector<ScRange*>::iterator itr = find_if(
+ iterator itr = find_if(
maRanges.begin(), maRanges.end(), FindEnclosingRange<ScAddress>(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<ScRange*>::const_iterator itrEnd = maRanges.end();
- vector<ScRange*>::const_iterator itr =
+ const_iterator itrEnd = maRanges.end();
+ const_iterator itr =
find_if(maRanges.begin(), itrEnd, FindIntersectingRange<ScRange>(rRange));
return itr != itrEnd;
}
bool ScRangeList::In( const ScRange& rRange ) const
{
- vector<ScRange*>::const_iterator itrEnd = maRanges.end();
- vector<ScRange*>::const_iterator itr =
+ const_iterator itrEnd = maRanges.end();
+ const_iterator itr =
find_if(maRanges.begin(), itrEnd, FindEnclosingRange<ScRange>(rRange));
return itr != itrEnd;
}
@@ -851,7 +851,7 @@ ScRange* ScRangeList::Remove(size_t nPos)
// Out-of-bound condition. Bail out.
return NULL;
- vector<ScRange*>::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<ScRange*>::const_iterator itr = maRanges.begin(), itrEnd = maRanges.end();
+ const_iterator itr = maRanges.begin(), itrEnd = maRanges.end();
ScRange aRet = **itr;
++itr;
for (; itr != itrEnd; ++itr)