diff options
Diffstat (limited to 'sw/qa/core/bigpointerarray-new.cxx')
-rw-r--r-- | sw/qa/core/bigpointerarray-new.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sw/qa/core/bigpointerarray-new.cxx b/sw/qa/core/bigpointerarray-new.cxx index 28501f4c3f4a..a769a8e3fae0 100644 --- a/sw/qa/core/bigpointerarray-new.cxx +++ b/sw/qa/core/bigpointerarray-new.cxx @@ -36,19 +36,19 @@ BigPtrArray::BigPtrArray() //container_.reserve(1000); } -ULONG BigPtrArray::Count() const +sal_uLong BigPtrArray::Count() const { return container_.size(); } -void BigPtrArray::Move(ULONG fromPos, ULONG toPos) +void BigPtrArray::Move(sal_uLong fromPos, sal_uLong toPos) { DBG_ASSERT(fromPos < container_.size() && toPos < container_.size(), "BigPtrArray.Move precondition violation"); Insert(container_[fromPos], toPos); Remove(toPos < fromPos ? fromPos + 1 : fromPos, 1); } -void BigPtrArray::ForEach(ULONG fromPos, ULONG toPos, FnForEach fn, void* pArgs) +void BigPtrArray::ForEach(sal_uLong fromPos, sal_uLong toPos, FnForEach fn, void* pArgs) { DBG_ASSERT(fromPos < toPos && fromPos < container_.size() && toPos < container_.size(), "BigPtrArray::ForEach precondition violation"); Container_t::const_iterator iter = container_.begin() + fromPos; @@ -65,13 +65,13 @@ void BigPtrArray::ForEach(FnForEach fn, void* pArgs) fn(*iter, pArgs); } -ElementPtr BigPtrArray::operator[](ULONG pos) const +ElementPtr BigPtrArray::operator[](sal_uLong pos) const { DBG_ASSERT(pos < container_.size(), "BigPtrArray::operator[] precondition violation"); return container_[pos]; } -void BigPtrArray::Insert(const ElementPtr& rElem, ULONG pos) +void BigPtrArray::Insert(const ElementPtr& rElem, sal_uLong pos) { DBG_ASSERT(pos <= container_.size(), "BigPtrArray::Insert precondition violation"); @@ -87,14 +87,14 @@ void BigPtrArray::Insert(const ElementPtr& rElem, ULONG pos) } } -void BigPtrArray::Remove( ULONG pos, ULONG n ) +void BigPtrArray::Remove( sal_uLong pos, sal_uLong n ) { DBG_ASSERT((pos < container_.size()) && ((container_.begin() + pos + n) < container_.end()), "BigPtrArray.Remove precondition violation") container_.erase(container_.begin() + pos, container_.begin() + pos + n); FixElementIndizes(container_.begin(), container_.end()); } -void BigPtrArray::Replace(ULONG pos, const ElementPtr& rElem) +void BigPtrArray::Replace(sal_uLong pos, const ElementPtr& rElem) { DBG_ASSERT(pos < container_.size(), "BigPtrArray::Replace precondition violation"); rElem->pBigPtrArray_ = this; |