From 7be9a575243584ab0732098d57bdf448009f1533 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 15 Jun 2011 22:32:38 +0200 Subject: COMMON: Fix code formatting, rename stuff for consistency --- common/array.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'common') diff --git a/common/array.h b/common/array.h index ff32d3d94c..e5434091fb 100644 --- a/common/array.h +++ b/common/array.h @@ -252,11 +252,11 @@ public: _size = newSize; } - void assign(const T *srcBegin, const T *srcEnd) { - resize(distance(srcBegin, srcEnd)); //fixme: ineffective? + void assign(const_iterator first, const_iterator last) { + resize(distance(first, last)); // FIXME: ineffective? T *dst = _storage; - while(srcBegin != srcEnd) - *dst++ = *srcBegin++; + while (first != last) + *dst++ = *first++; } protected: -- cgit v1.2.3