Skip to content

v0.2.50..v0.2.51 changeset KeepTagsVisitor.cpp

Garret Voltz edited this page Jan 15, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/visitors/KeepTagsVisitor.cpp b/hoot-core/src/main/cpp/hoot/core/visitors/KeepTagsVisitor.cpp
index ebb411c..ab11227 100644
--- a/hoot-core/src/main/cpp/hoot/core/visitors/KeepTagsVisitor.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/visitors/KeepTagsVisitor.cpp
@@ -56,7 +56,7 @@ void KeepTagsVisitor::visit(const std::shared_ptr<Element>& e)
 
   //get a copy of the tags for modifying
   Tags tags;
-  tags.addTags(e->getTags());
+  tags.add(e->getTags());
   for (Tags::const_iterator it = e->getTags().begin(); it != e->getTags().end(); ++it)
   {
     if (!_keys.contains(it.key()))
Clone this wiki locally