Skip to content
Snippets Groups Projects
Commit 70b193f7 authored by Tom Fischer's avatar Tom Fischer Committed by Dmitri Naumov
Browse files

[MeL/Elements] getID() / setID() don't need to be virtual

parent 3e420ce7
No related branches found
No related tags found
No related merge requests found
...@@ -86,7 +86,7 @@ public: ...@@ -86,7 +86,7 @@ public:
virtual const Element* getBoundary(unsigned i) const = 0; virtual const Element* getBoundary(unsigned i) const = 0;
/// Returns the ID of the element. /// Returns the ID of the element.
virtual std::size_t getID() const final { return _id; } std::size_t getID() const { return _id; }
virtual unsigned getNumberOfBoundaries() const = 0; virtual unsigned getNumberOfBoundaries() const = 0;
...@@ -195,7 +195,7 @@ protected: ...@@ -195,7 +195,7 @@ protected:
explicit Element(std::size_t id); explicit Element(std::size_t id);
/// Sets the element ID. /// Sets the element ID.
virtual void setID(std::size_t id) final { _id = id; } void setID(std::size_t id) { _id = id; }
std::size_t _id; std::size_t _id;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment