diff options
author | Thorsten Behrens <tbehrens@suse.com> | 2012-02-06 11:20:17 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2012-02-06 11:21:15 +0100 |
commit | 9b2451fa65905cdba98705efd4a0490492864511 (patch) | |
tree | 147645b7071afc1f3b12ba95d499ab7288b28a35 | |
parent | bcb9328d8aef6dfcc7e6aecc44888a796ff5551f (diff) |
Add missing operator++/-- overloads to kludge class.
(to fix the build after the cppcheck cleanup)
-rw-r--r-- | hwpfilter/source/list.hxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/hwpfilter/source/list.hxx b/hwpfilter/source/list.hxx index c4df08e0a0f3..45ce0708be6f 100644 --- a/hwpfilter/source/list.hxx +++ b/hwpfilter/source/list.hxx @@ -95,6 +95,8 @@ public: // bug-compatible with original LinkedList.h/cxx: Ignore parameter! void operator++( int ); /// advance iterator by one step (ignore n !!!) void operator--( int ); /// go one step backwards (ignore n !!!) + void operator++(); /// advance iterator by one step + void operator--(); /// go one step backwards private: bool valid(); @@ -275,6 +277,20 @@ void LinkedListIterator<T>::operator--( int ) } template<class T> +void LinkedListIterator<T>::operator++() +{ + ASSERT( mpList != NULL ); + mnPosition ++; +} + +template<class T> +void LinkedListIterator<T>::operator--() +{ + ASSERT( mpList != NULL ); + mnPosition --; +} + +template<class T> bool LinkedListIterator<T>::valid() { return mpList != NULL |