[Scummvm-cvs-logs] scummvm master -> 7be9a575243584ab0732098d57bdf448009f1533
fingolfin
max at quendi.de
Wed Jun 15 23:23:42 CEST 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
7be9a57524 COMMON: Fix code formatting, rename stuff for consistency
Commit: 7be9a575243584ab0732098d57bdf448009f1533
https://github.com/scummvm/scummvm/commit/7be9a575243584ab0732098d57bdf448009f1533
Author: Max Horn (max at quendi.de)
Date: 2011-06-15T14:21:54-07:00
Commit Message:
COMMON: Fix code formatting, rename stuff for consistency
Changed paths:
common/array.h
diff --git a/common/array.h b/common/array.h
index ff32d3d..e543409 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:
More information about the Scummvm-git-logs
mailing list