Skip to content

v0.2.49..v0.2.50 changeset AddExportTagsVisitor.cpp

Garret Voltz edited this page Nov 6, 2019 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/visitors/AddExportTagsVisitor.cpp b/hoot-core/src/main/cpp/hoot/core/visitors/AddExportTagsVisitor.cpp
index 6842e6e..016350f 100644
--- a/hoot-core/src/main/cpp/hoot/core/visitors/AddExportTagsVisitor.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/visitors/AddExportTagsVisitor.cpp
@@ -33,11 +33,11 @@ namespace hoot
 {
 
 AddExportTagsVisitor::AddExportTagsVisitor()
-{  
-  _includeIds = false,
-  _textStatus = ConfigOptions().getWriterTextStatus();
-  _includeDebug = ConfigOptions().getWriterIncludeDebugTags();
-  _includeCircularError = ConfigOptions().getWriterIncludeCircularErrorTags();
+  : _includeIds(false),
+    _textStatus(ConfigOptions().getWriterTextStatus()),
+    _includeCircularError(ConfigOptions().getWriterIncludeCircularErrorTags()),
+    _includeDebug(ConfigOptions().getWriterIncludeDebugTags())
+{
 }
 
 void AddExportTagsVisitor::visit(const ElementPtr& pElement)
@@ -91,7 +91,7 @@ void AddExportTagsVisitor::visit(const ElementPtr& pElement)
   }
 
   // HootId
-  if (_includeIds)
+  if (_includeDebug || _includeIds)
   {
     tags[MetadataTags::HootId()] = QString::number(pElement->getId());
   }
@@ -107,7 +107,7 @@ void AddExportTagsVisitor::overrideDebugSettings()
 {
   _includeIds = true;
   _textStatus = false;
-  _includeCircularError= true;
+  _includeCircularError = true;
   _includeDebug = true;
 }
 
Clone this wiki locally