[Scummvm-cvs-logs] CVS: scummvm/common list.h,1.26,1.27
Max Horn
fingolfin at users.sourceforge.net
Sat Jun 25 12:45:01 CEST 2005
Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13067
Modified Files:
list.h
Log Message:
Fix postfix inc/decrement operators of List::Iterator
Index: list.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/list.h,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- list.h 21 Jun 2005 22:08:14 -0000 1.26
+++ list.h 25 Jun 2005 19:43:59 -0000 1.27
@@ -66,7 +66,7 @@
}
// 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 @@
}
// Postfix dec
Iterator<T2> operator--(int) {
- Iterator<T2> tmp(*this);
+ Iterator<T2> tmp(_node);
if (_node)
_node = _node->_prev;
return tmp;
More information about the Scummvm-git-logs
mailing list