v0.2.54..v0.2.55 changeset ElementConstOsmMapVisitor.h
Garret Voltz edited this page Aug 14, 2020
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/visitors/ElementConstOsmMapVisitor.h b/hoot-core/src/main/cpp/hoot/core/visitors/ElementConstOsmMapVisitor.h
index cc5e3db..b64b5dd 100644
--- a/hoot-core/src/main/cpp/hoot/core/visitors/ElementConstOsmMapVisitor.h
+++ b/hoot-core/src/main/cpp/hoot/core/visitors/ElementConstOsmMapVisitor.h
@@ -22,7 +22,7 @@
* This will properly maintain the copyright information. DigitalGlobe
* copyrights will be updated automatically.
*
- * @copyright Copyright (C) 2015, 2016, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2015, 2016, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
*/
#ifndef ELEMENTCONSTOSMMAPVISITOR_H
#define ELEMENTCONSTOSMMAPVISITOR_H
@@ -36,7 +36,7 @@ namespace hoot
{
/**
- * Base class to ease OsmMapConsumer usage.
+ * Base class to ease ConstOsmMapConsumer usage.
*/
class ElementConstOsmMapVisitor : public ConstElementVisitor, public ConstOsmMapConsumer
{
@@ -47,9 +47,7 @@ public:
ElementConstOsmMapVisitor() {}
virtual ~ElementConstOsmMapVisitor() {}
- virtual void setOsmMap(const OsmMap* map) { _map = map; }
-
- virtual void visit(const std::shared_ptr<const Element>& e) = 0;
+ void setOsmMap(const OsmMap* map) override { _map = map; }
protected: