Skip to content

v0.2.50..v0.2.51 changeset Change.cpp

Garret Voltz edited this page Jan 15, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/algorithms/changeset/Change.cpp b/hoot-core/src/main/cpp/hoot/core/algorithms/changeset/Change.cpp
index f67abe4..6026a47 100644
--- a/hoot-core/src/main/cpp/hoot/core/algorithms/changeset/Change.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/algorithms/changeset/Change.cpp
@@ -27,6 +27,7 @@
 #include "Change.h"
 
 #include <hoot/core/util/Log.h>
+#include <hoot/core/elements/OsmUtils.h>
 
 namespace hoot
 {
@@ -66,6 +67,11 @@ QString Change::changeTypeToString(const ChangeType changeType)
   }
 }
 
+bool Change::operator==(Change other) const
+{
+  return _type == other.getType() && other.getElement()->getElementId() == _element->getElementId();
+}
+
 QString Change::toString() const
 {
   return
Clone this wiki locally