From 32b2efb8d75a42a8ad0fd241065451cb35125c9f Mon Sep 17 00:00:00 2001 From: Chris Apers Date: Sat, 11 Feb 2006 18:02:13 +0000 Subject: This seems to definitively fix my compilation problem svn-id: r20554 --- common/list.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'common') diff --git a/common/list.h b/common/list.h index a5c0d69c99..8fb59a12a9 100644 --- a/common/list.h +++ b/common/list.h @@ -72,7 +72,11 @@ public: } // Postfix inc Iterator operator++(int) { +#ifndef PALMOS_MODE Iterator tmp(_node); +#else + Iterator tmp(_node); +#endif if (_node) _node = _node->_next; return tmp; @@ -85,7 +89,11 @@ public: } // Postfix dec Iterator operator--(int) { +#ifndef PALMOS_MODE Iterator tmp(_node); +#else + Iterator tmp(_node); +#endif if (_node) _node = _node->_prev; return tmp; @@ -177,15 +185,9 @@ public: } iterator erase(iterator first, iterator last) { - while (first != last) { -#ifndef PALMOS_MODE + while (first != last) erase(first++); -#else - iterator tmp = first._node->_next; - erase(first); - first = tmp; -#endif - } + return last; } -- cgit v1.2.3