aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2012-02-22 20:10:04 +0100
committerJohannes Schickel2012-02-22 20:10:04 +0100
commit5eabc4a2f34c7fc734bc56894acbae2fe9e85807 (patch)
treeb5bd1304bad80089ccc0a46430c3a5a012407b51
parent03959c18dc162f4970ee40931a00ac242affda1b (diff)
downloadscummvm-rg350-5eabc4a2f34c7fc734bc56894acbae2fe9e85807.tar.gz
scummvm-rg350-5eabc4a2f34c7fc734bc56894acbae2fe9e85807.tar.bz2
scummvm-rg350-5eabc4a2f34c7fc734bc56894acbae2fe9e85807.zip
COMMON: Add a size_type to List.
-rw-r--r--common/list.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/list.h b/common/list.h
index 044b9d7a49..9792042239 100644
--- a/common/list.h
+++ b/common/list.h
@@ -43,6 +43,7 @@ public:
typedef ListInternal::ConstIterator<t_T> const_iterator;
typedef t_T value_type;
+ typedef uint size_type;
public:
List() {
@@ -181,8 +182,8 @@ public:
return *this;
}
- uint size() const {
- uint n = 0;
+ size_type size() const {
+ size_type n = 0;
for (const NodeBase *cur = _anchor._next; cur != &_anchor; cur = cur->_next)
++n;
return n;