[Scummvm-cvs-logs] SF.net SVN: scummvm: [21515] scummvm/trunk/common/list.h

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Fri Mar 31 14:16:38 CEST 2006


Revision: 21515
Author:   fingolfin
Date:     2006-03-31 14:15:42 -0800 (Fri, 31 Mar 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=21515&view=rev

Log Message:
-----------
Modified the List postfix ++/-- operators to simply invoke their prefix counterparts; also removed Symbian/Palm specific hack

Modified Paths:
--------------
    scummvm/trunk/common/list.h
Modified: scummvm/trunk/common/list.h
===================================================================
--- scummvm/trunk/common/list.h	2006-03-31 13:06:23 UTC (rev 21514)
+++ scummvm/trunk/common/list.h	2006-03-31 22:15:42 UTC (rev 21515)
@@ -72,13 +72,8 @@
 		}
 		// Postfix inc
 		Iterator<T2> operator++(int) {
-#if !defined (PALMOS_MODE) && !defined (__SYMBIAN32__)
-			Iterator<T2> tmp(_node);
-#else
 			Iterator tmp(_node);
-#endif
-			if (_node)
-				_node = _node->_next;
+			++(*this);
 			return tmp;
 		}
 		// Prefix dec
@@ -89,13 +84,8 @@
 		}
 		// Postfix dec
 		Iterator<T2> operator--(int) {
-#ifndef PALMOS_MODE
-			Iterator<T2> tmp(_node);
-#else
 			Iterator tmp(_node);
-#endif
-			if (_node)
-				_node = _node->_prev;
+			--(*this);
 			return tmp;
 		}
 		T2& operator*() const {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Scummvm-git-logs mailing list