diff options
author | Max Horn | 2011-06-15 22:32:38 +0200 |
---|---|---|
committer | Max Horn | 2011-06-15 23:21:54 +0200 |
commit | 7be9a575243584ab0732098d57bdf448009f1533 (patch) | |
tree | a3d41ff7077caf752a375f81312df57e15a762a2 /common | |
parent | dc1c1d48d9aee7bbaca7f6643e46ec1228f3ac7f (diff) | |
download | scummvm-rg350-7be9a575243584ab0732098d57bdf448009f1533.tar.gz scummvm-rg350-7be9a575243584ab0732098d57bdf448009f1533.tar.bz2 scummvm-rg350-7be9a575243584ab0732098d57bdf448009f1533.zip |
COMMON: Fix code formatting, rename stuff for consistency
Diffstat (limited to 'common')
-rw-r--r-- | common/array.h | 8 |
1 files changed, 4 insertions, 4 deletions
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: |