Merge pull request #64 from norbertwenzel/virtual_dtor_cleanup

Fix missing virtual destructor warnings
This commit is contained in:
Alessandro Muntoni 2020-03-30 10:08:40 +02:00 committed by GitHub
commit 2d35e3964d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -100,6 +100,8 @@ public:
ComputeQuality();
ComputeAngle();
}
// enforce virtual dtor for this class and all subclasses
virtual ~TrivialEar() = default;
/// Compute the angle of the two edges of the ear.
// it tries to make the computation in a precision safe way.

View File

@ -355,7 +355,7 @@ struct Property : IElementProperty
};
struct Element : IElement
struct Element final : IElement
{
IElement* getFirstChild() const override { return child; }
IElement* getSibling() const override { return sibling; }