From 5eabc4a2f34c7fc734bc56894acbae2fe9e85807 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 22 Feb 2012 20:10:04 +0100 Subject: COMMON: Add a size_type to List. --- common/list.h | 5 +++-- 1 file 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 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; -- cgit v1.2.3