aboutsummaryrefslogtreecommitdiff
path: root/common/list.h
diff options
context:
space:
mode:
authorMax Horn2004-02-05 00:19:57 +0000
committerMax Horn2004-02-05 00:19:57 +0000
commitf59eb3b2194826c73f56161497f4004b2313efa2 (patch)
tree5c070e2626f83d256fc161a8ec7e98ca2397af58 /common/list.h
parentdc852177fb27b83620f0a4296cde0e1a8dec1f62 (diff)
downloadscummvm-rg350-f59eb3b2194826c73f56161497f4004b2313efa2.tar.gz
scummvm-rg350-f59eb3b2194826c73f56161497f4004b2313efa2.tar.bz2
scummvm-rg350-f59eb3b2194826c73f56161497f4004b2313efa2.zip
renamed (Const)Iterator to (const_)iterator; changed size() to return an uint
svn-id: r12722
Diffstat (limited to 'common/list.h')
-rw-r--r--common/list.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/common/list.h b/common/list.h
index c06008a8c9..b4fea866ff 100644
--- a/common/list.h
+++ b/common/list.h
@@ -34,8 +34,8 @@ protected:
T *_data;
public:
- typedef T *Iterator;
- typedef const T *ConstIterator;
+ typedef T *iterator;
+ typedef const T *const_iterator;
public:
List<T>() : _capacity(0), _size(0), _data(0) {}
@@ -103,7 +103,7 @@ public:
return *this;
}
- int size() const {
+ uint size() const {
return _size;
}
@@ -121,19 +121,19 @@ public:
}
- Iterator begin() {
+ iterator begin() {
return _data;
}
- Iterator end() {
+ iterator end() {
return _data + _size;
}
- ConstIterator begin() const {
+ const_iterator begin() const {
return _data;
}
- ConstIterator end() const {
+ const_iterator end() const {
return _data + _size;
}