diff --git a/src/zimlib/include/zim/fileiterator.h b/src/zimlib/include/zim/fileiterator.h index 833f59e..667f956 100644 --- a/src/zimlib/include/zim/fileiterator.h +++ b/src/zimlib/include/zim/fileiterator.h @@ -67,8 +67,8 @@ namespace zim const_iterator operator++(int) { const_iterator it = *this; - ++it; - return *this; + operator++(); + return it; } const_iterator& operator--() @@ -78,11 +78,11 @@ namespace zim return *this; } - const_iterator& operator--(int) + const_iterator operator--(int) { const_iterator it = *this; - --it; - return *this; + operator--(); + return it; } const Article& operator*() const