From faa6df721ef88c5b7d94732544fbe8905e200d2e Mon Sep 17 00:00:00 2001 From: kelson42 Date: Mon, 27 Sep 2010 11:02:05 +0000 Subject: [PATCH] + small fix --- src/zimlib/include/zim/fileiterator.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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