summaryrefslogtreecommitdiffabout
path: root/include/opkele/iterator.h
Unidiff
Diffstat (limited to 'include/opkele/iterator.h') (more/less context) (ignore whitespace changes)
-rw-r--r--include/opkele/iterator.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/opkele/iterator.h b/include/opkele/iterator.h
index 28c1c83..8f86234 100644
--- a/include/opkele/iterator.h
+++ b/include/opkele/iterator.h
@@ -154,9 +154,9 @@ namespace opkele {
154 return it.operator->(); } 154 return it.operator->(); }
155 155
156 basic_filterator<IT>& operator++() { 156 basic_filterator<IT>& operator++() {
157 bool found = false; 157 bool found = false;
158 for(++it;!(it==ei || (found=is_interesting()));++it); 158 for(++it;!(it==ei || (found=is_interesting()));++it) ;
159 if(!found) empty=true; 159 if(!found) empty=true;
160 return *this; 160 return *this;
161 } 161 }
162 basic_filterator<IT> operator++(int) { 162 basic_filterator<IT> operator++(int) {
@@ -166,9 +166,9 @@ namespace opkele {
166 } 166 }
167 167
168 void prepare() { 168 void prepare() {
169 bool found = false; 169 bool found = false;
170 for(;!(it==ei || (found=is_interesting()));++it); 170 for(;!(it==ei || (found=is_interesting()));++it) ;
171 if(!found) empty = true; 171 if(!found) empty = true;
172 } 172 }
173 virtual bool is_interesting() const = 0; 173 virtual bool is_interesting() const = 0;
174 }; 174 };