-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.49..v0.2.50 changeset CountUniqueReviewsVisitor.cpp
Garret Voltz edited this page Nov 6, 2019
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/visitors/CountUniqueReviewsVisitor.cpp b/hoot-core/src/main/cpp/hoot/core/visitors/CountUniqueReviewsVisitor.cpp
index a6f2787..f8b8689 100644
--- a/hoot-core/src/main/cpp/hoot/core/visitors/CountUniqueReviewsVisitor.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/visitors/CountUniqueReviewsVisitor.cpp
@@ -22,7 +22,7 @@
* This will properly maintain the copyright information. DigitalGlobe
* copyrights will be updated automatically.
*
- * @copyright Copyright (C) 2015, 2017, 2018 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2015, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
*/
#include "CountUniqueReviewsVisitor.h"
@@ -40,8 +40,12 @@ void CountUniqueReviewsVisitor::visit(const ConstElementPtr& e)
{
set<ReviewMarker::ReviewUid> reviews =
_reviewMarker.getReviewUids(_map->shared_from_this(), e);
-
_reviews.insert(reviews.begin(), reviews.end());
}
+void CountUniqueReviewsVisitor::clear()
+{
+ _reviews.clear();
+}
+
}