Skip to content

v0.2.53..v0.2.54 changeset GeometryModifierVisitor.h

Garret Voltz edited this page Mar 31, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/visitors/geometrymodifiers/GeometryModifierVisitor.h b/hoot-core/src/main/cpp/hoot/core/visitors/geometrymodifiers/GeometryModifierVisitor.h
index 6e66b95..d052029 100644
--- a/hoot-core/src/main/cpp/hoot/core/visitors/geometrymodifiers/GeometryModifierVisitor.h
+++ b/hoot-core/src/main/cpp/hoot/core/visitors/geometrymodifiers/GeometryModifierVisitor.h
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 
 #ifndef GEOMETRYMODIFIERVISITOR_H
@@ -34,7 +34,6 @@
 #include <hoot/core/elements/ElementVisitor.h>
 #include <hoot/core/elements/Way.h>
 #include <hoot/core/elements/OsmMap.h>
-#include <hoot/core/info/OperationStatusInfo.h>
 
 namespace hoot
 {
@@ -45,7 +44,7 @@ namespace hoot
  * Applies the filter to the node and if it matches calls the requested modifier's
  * process function.
  */
-class GeometryModifierVisitor : public ElementVisitor, public OperationStatusInfo
+class GeometryModifierVisitor : public ElementVisitor
 {
   friend class GeometryModifierOp;
 
@@ -64,7 +63,10 @@ public:
 
   // OperationStatusInfo
   virtual QString getInitStatusMessage() const { return "Modifying geometry..."; }
-  virtual QString getCompletedStatusMessage() const { return "Modified " + QString::number(_numAffected) + " elements"; }
+  virtual QString getCompletedStatusMessage() const
+  { return "Modified " + QString::number(_numAffected) + " elements"; }
+
+  virtual std::string getClassName() const { return className(); }
 
 private:
   OsmMap* _pMap;
Clone this wiki locally