Skip to content

v0.2.53..v0.2.54 changeset SumNumericTagsVisitor.cpp

Garret Voltz edited this page Mar 31, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/visitors/SumNumericTagsVisitor.cpp b/hoot-core/src/main/cpp/hoot/core/visitors/SumNumericTagsVisitor.cpp
index 1b8932c..389d325 100644
--- a/hoot-core/src/main/cpp/hoot/core/visitors/SumNumericTagsVisitor.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/visitors/SumNumericTagsVisitor.cpp
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2015, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2015, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 #include "SumNumericTagsVisitor.h"
 
@@ -68,6 +68,7 @@ void SumNumericTagsVisitor::visit(const ConstElementPtr& e)
       if (parsed)
       {
         _sum += value;
+        _numAffected++;
       }
       else
       {
@@ -85,6 +86,7 @@ void SumNumericTagsVisitor::visit(const ConstElementPtr& e)
       }
     }
   }
+  _numProcessed++;
 }
 
 }
Clone this wiki locally