Skip to content

v0.2.55..v0.2.56 changeset ChangesetCreator.cpp

Garret Voltz edited this page Aug 14, 2020 · 3 revisions
diff --git a/hoot-core/src/main/cpp/hoot/core/algorithms/changeset/ChangesetCreator.cpp b/hoot-core/src/main/cpp/hoot/core/algorithms/changeset/ChangesetCreator.cpp
index 1d53c75..9a77822 100644
--- a/hoot-core/src/main/cpp/hoot/core/algorithms/changeset/ChangesetCreator.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/algorithms/changeset/ChangesetCreator.cpp
@@ -78,6 +78,17 @@ _numCreateChanges(0),
 _numModifyChanges(0),
 _numDeleteChanges(0)
 {
+  if (printDetailedStats)
+  {
+    QFile statsFile(statsOutputFile);
+    if (statsFile.exists())
+    {
+      if (!statsFile.remove())
+      {
+        LOG_ERROR("Unable to remove changeset statistics file: " << statsOutputFile);
+      }
+    }
+  }
 }
 
 void ChangesetCreator::create(const QString& output, const QString& input1, const QString& input2)
Clone this wiki locally