aboutsummaryrefslogtreecommitdiff
path: root/common/list.h
diff options
context:
space:
mode:
authorMax Horn2005-06-25 19:43:59 +0000
committerMax Horn2005-06-25 19:43:59 +0000
commit5059e710e82c7a5bca60914206487767714d0b10 (patch)
tree6677ba78c5b1d1d020758ae608f88aaeaac3fae5 /common/list.h
parente68a6ddd2615ddc42eb18bf3458607f6d108f79f (diff)
downloadscummvm-rg350-5059e710e82c7a5bca60914206487767714d0b10.tar.gz
scummvm-rg350-5059e710e82c7a5bca60914206487767714d0b10.tar.bz2
scummvm-rg350-5059e710e82c7a5bca60914206487767714d0b10.zip
Fix postfix inc/decrement operators of List::Iterator
svn-id: r18465
Diffstat (limited to 'common/list.h')
-rw-r--r--common/list.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/list.h b/common/list.h
index 03d6076635..d49a6bf0bc 100644
--- a/common/list.h
+++ b/common/list.h
@@ -66,7 +66,7 @@ public:
}
// Postfix inc
Iterator<T2> operator++(int) {
- Iterator<T2> tmp(*this);
+ Iterator<T2> tmp(_node);
if (_node)
_node = _node->_next;
return tmp;
@@ -79,7 +79,7 @@ public:
}
// Postfix dec
Iterator<T2> operator--(int) {
- Iterator<T2> tmp(*this);
+ Iterator<T2> tmp(_node);
if (_node)
_node = _node->_prev;
return tmp;