aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/list.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/common/list.h b/common/list.h
index eac6b917f9..d7273295e0 100644
--- a/common/list.h
+++ b/common/list.h
@@ -72,13 +72,8 @@ public:
}
// 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 @@ public:
}
// 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 {