Skip to content

v0.2.51..v0.2.52 changeset ElementIterator.cpp

Garret Voltz edited this page Jan 15, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/elements/ElementIterator.cpp b/hoot-core/src/main/cpp/hoot/core/elements/ElementIterator.cpp
index 21a8a37..1371253 100644
--- a/hoot-core/src/main/cpp/hoot/core/elements/ElementIterator.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/elements/ElementIterator.cpp
@@ -34,11 +34,11 @@ namespace hoot
 
 bool ElementIterator::hasNext()
 {
+  LOG_VART(_pending.empty());
   if (_pending.empty())
   {
     _next();
   }
-
   return _pending.empty() == false;
 }
 
@@ -58,6 +58,7 @@ const std::shared_ptr<Element>& ElementIterator::next()
     _current = _pending.front();
     _pending.pop_front();
   }
+
   return _current;
 }
 
Clone this wiki locally