-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.53..v0.2.54 changeset IdSwapOp.h
Garret Voltz edited this page Mar 31, 2020
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/ops/IdSwapOp.h b/hoot-core/src/main/cpp/hoot/core/ops/IdSwapOp.h
index 9312515..8973586 100644
--- a/hoot-core/src/main/cpp/hoot/core/ops/IdSwapOp.h
+++ b/hoot-core/src/main/cpp/hoot/core/ops/IdSwapOp.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 IDSWAPOP_H
@@ -30,7 +30,6 @@
#include <hoot/core/conflate/IdSwap.h>
#include <hoot/core/elements/OsmMap.h>
-#include <hoot/core/info/OperationStatusInfo.h>
#include <hoot/core/ops/ConstOsmMapOperation.h>
namespace hoot
@@ -40,7 +39,7 @@ namespace hoot
* @brief The IdSwapOp class is used to swap node and way IDs with each other
* It is used to preserve node IDs within ways when merging ways
*/
-class IdSwapOp : public ConstOsmMapOperation, public OperationStatusInfo
+class IdSwapOp : public ConstOsmMapOperation
{
public:
/**
@@ -79,6 +78,8 @@ public:
virtual QString getCompletedStatusMessage() const override
{ return "Swapped " + QString::number(_numAffected) + " IDs."; }
+ virtual std::string getClassName() const { return className(); }
+
private:
/**
* @brief swapNodeIdInWay Swap the node ID in the ways with the swap ID