aboutsummaryrefslogtreecommitdiff
path: root/common/list.h
diff options
context:
space:
mode:
authorMax Horn2006-03-31 22:15:42 +0000
committerMax Horn2006-03-31 22:15:42 +0000
commit088b0afad5e4aae4702831314641a6a3564fb165 (patch)
tree588fbf696cfca076d837d88d7b842073dc43b933 /common/list.h
parentc4349e88f730f4f171969f7c4f6740c4ecfb0e21 (diff)
downloadscummvm-rg350-088b0afad5e4aae4702831314641a6a3564fb165.tar.gz
scummvm-rg350-088b0afad5e4aae4702831314641a6a3564fb165.tar.bz2
scummvm-rg350-088b0afad5e4aae4702831314641a6a3564fb165.zip
Modified the List postfix ++/-- operators to simply invoke their prefix counterparts; also removed Symbian/Palm specific hack
svn-id: r21515
Diffstat (limited to 'common/list.h')
-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 {