Skip to content

v0.2.50..v0.2.51 changeset Relation.h

Garret Voltz edited this page Jan 15, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/elements/Relation.h b/hoot-core/src/main/cpp/hoot/core/elements/Relation.h
index f6aa605..ed46511 100644
--- a/hoot-core/src/main/cpp/hoot/core/elements/Relation.h
+++ b/hoot-core/src/main/cpp/hoot/core/elements/Relation.h
@@ -94,10 +94,10 @@ public:
   { return _relationData->getElements(); }
 
   virtual geos::geom::Envelope* getEnvelope(
-    const std::shared_ptr<const ElementProvider>& ep) const;
+    const std::shared_ptr<const ElementProvider>& ep) const override;
 
-  geos::geom::Envelope getEnvelopeInternal(
-    const std::shared_ptr<const ElementProvider>& ep) const;
+  virtual const geos::geom::Envelope& getEnvelopeInternal(
+    const std::shared_ptr<const ElementProvider>& ep) const override;
 
   virtual ElementType getElementType() const { return ElementType(ElementType::Relation); }
 
@@ -133,6 +133,7 @@ public:
   void replaceElement(const std::shared_ptr<const Element>& from,
                       const std::shared_ptr<const Element>& to);
   void replaceElement(const ConstElementPtr& from, const QList<ElementPtr>& to);
+  void replaceElement(const ElementId& from, const ElementId& to);
 
   /**
    * Replaces all instances of old with the values in the collection defined by start/end. Order is
Clone this wiki locally