[Libreoffice-commits] .: hwpfilter/source

Thorsten Behrens thorsten at kemper.freedesktop.org
Mon Feb 6 02:22:27 PST 2012


 hwpfilter/source/list.hxx |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)

New commits:
commit 9b2451fa65905cdba98705efd4a0490492864511
Author: Thorsten Behrens <tbehrens at suse.com>
Date:   Mon Feb 6 11:20:17 2012 +0100

    Add missing operator++/-- overloads to kludge class.
    
    (to fix the build after the cppcheck cleanup)

diff --git a/hwpfilter/source/list.hxx b/hwpfilter/source/list.hxx
index c4df08e..45ce070 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


More information about the Libreoffice-commits mailing list