diff options
| author | Johannes Schickel | 2012-02-22 20:10:04 +0100 | 
|---|---|---|
| committer | Johannes Schickel | 2012-02-22 20:10:04 +0100 | 
| commit | 5eabc4a2f34c7fc734bc56894acbae2fe9e85807 (patch) | |
| tree | b5bd1304bad80089ccc0a46430c3a5a012407b51 | |
| parent | 03959c18dc162f4970ee40931a00ac242affda1b (diff) | |
| download | scummvm-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.h | 5 | 
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;  | 
