aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2004-04-16 22:04:32 +0000
committerMax Horn2004-04-16 22:04:32 +0000
commit40afd9b56620491c72ad1a04323b4144b0350a70 (patch)
tree979eace29a163ba33dba58b984bdbcb040e6370e /common
parentf8d9bc6bcd3f2c0d9c8a6ec8e63e266ebafa5da4 (diff)
downloadscummvm-rg350-40afd9b56620491c72ad1a04323b4144b0350a70.tar.gz
scummvm-rg350-40afd9b56620491c72ad1a04323b4144b0350a70.tar.bz2
scummvm-rg350-40afd9b56620491c72ad1a04323b4144b0350a70.zip
Fixed const iterator
svn-id: r13591
Diffstat (limited to 'common')
-rw-r--r--common/list.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/list.h b/common/list.h
index 7afc97b014..b21bc5e862 100644
--- a/common/list.h
+++ b/common/list.h
@@ -74,10 +74,10 @@ protected:
_node = _node->_prev;
return tmp;
}
- T& operator*() const {
+ T2& operator*() const {
return static_cast<Node<T2>*>(_node)->_data;
}
- T* operator->() const {
+ T2* operator->() const {
return &(operator*());
}
@@ -94,7 +94,7 @@ protected:
public:
typedef Iterator<T> iterator;
- typedef const Iterator<T> const_iterator;
+ typedef Iterator<const T> const_iterator;
public:
List<T>() {