Skip to content

v0.2.54..v0.2.55 changeset EdgeDistanceExtractor.cpp

Garret Voltz edited this page Aug 14, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/algorithms/extractors/EdgeDistanceExtractor.cpp b/hoot-core/src/main/cpp/hoot/core/algorithms/extractors/EdgeDistanceExtractor.cpp
index b244bcc..4daefb3 100644
--- a/hoot-core/src/main/cpp/hoot/core/algorithms/extractors/EdgeDistanceExtractor.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/algorithms/extractors/EdgeDistanceExtractor.cpp
@@ -57,7 +57,7 @@ public:
 
   DiscretizeWaysVisitor(double spacing, vector<Coordinate>& v) : _spacing(spacing), _result(v) {}
 
-  virtual void visit(const ConstElementPtr& e)
+  void visit(const ConstElementPtr& e) override
   {
     if (e->getElementType() == ElementType::Way)
     {
@@ -66,8 +66,8 @@ public:
     }
   }
 
-  virtual QString getDescription() const { return ""; }
-  virtual std::string getClassName() const { return ""; }
+  QString getDescription() const override { return ""; }
+  std::string getClassName() const override { return ""; }
 
 private:
 
@@ -81,7 +81,7 @@ public:
 
   LinesWaysVisitor(vector<Geometry*>& lines) : _lines(lines) {}
 
-  virtual void visit(const std::shared_ptr<const Element>& e)
+  void visit(const ConstElementPtr& e) override
   {
     if (e->getElementType() == ElementType::Way)
     {
@@ -91,8 +91,8 @@ public:
     }
   }
 
-  virtual QString getDescription() const { return ""; }
-  virtual std::string getClassName() const { return ""; }
+  QString getDescription() const override { return ""; }
+  std::string getClassName() const override { return ""; }
 
 private:
 
@@ -148,7 +148,7 @@ double EdgeDistanceExtractor::_oneDistance(const OsmMap& map,
 
   std::shared_ptr<Geometry> g = _toLines(map, e2);
 
-  // This aggregation pre is a performance bottleneck for Area Conflation.
+  // This pre-aggregation step is a performance bottleneck for Area Conflation.
   vector<double> distances;
   distances.reserve(points.size());
   for (size_t i = 0; i < points.size(); i++)
Clone this wiki locally