From ddc9e2cb17456107c75ec727d15ee3485305eb9f Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Tue, 8 Dec 2015 12:10:38 +0100
Subject: [PATCH] [MeL/Elements] Add virtual keyword again (+final).

---
 MeshLib/Elements/Element.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/MeshLib/Elements/Element.h b/MeshLib/Elements/Element.h
index 66642ead389..a4506620380 100644
--- a/MeshLib/Elements/Element.h
+++ b/MeshLib/Elements/Element.h
@@ -89,7 +89,7 @@ public:
 	virtual const Element* getFace(unsigned i) const = 0;
 
 	/// Returns the ID of the element.
-	std::size_t getID() const { return _id; }
+	virtual std::size_t getID() const final { return _id; }
 
 	/// Get the number of edges for this element.
 	virtual unsigned getNEdges() const = 0;
@@ -203,7 +203,7 @@ protected:
 	explicit Element(std::size_t id);
 
 	/// Sets the element ID.
-	void setID(std::size_t id) { _id = id; }
+	virtual void setID(std::size_t id) final { _id = id; }
 
 	Node** _nodes;
 	std::size_t _id;
-- 
GitLab