From 9b2451fa65905cdba98705efd4a0490492864511 Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Mon, 6 Feb 2012 11:20:17 +0100 Subject: Add missing operator++/-- overloads to kludge class. (to fix the build after the cppcheck cleanup) --- hwpfilter/source/list.hxx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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(); @@ -274,6 +276,20 @@ void LinkedListIterator::operator--( int ) mnPosition --; } +template +void LinkedListIterator::operator++() +{ + ASSERT( mpList != NULL ); + mnPosition ++; +} + +template +void LinkedListIterator::operator--() +{ + ASSERT( mpList != NULL ); + mnPosition --; +} + template bool LinkedListIterator::valid() { -- cgit