diff --git a/vcg/complex/algorithms/hole.h b/vcg/complex/algorithms/hole.h index 064d1807..ecb2256b 100644 --- a/vcg/complex/algorithms/hole.h +++ b/vcg/complex/algorithms/hole.h @@ -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. diff --git a/wrap/openfbx/src/ofbx.cpp b/wrap/openfbx/src/ofbx.cpp index a6e23236..8679bd6d 100644 --- a/wrap/openfbx/src/ofbx.cpp +++ b/wrap/openfbx/src/ofbx.cpp @@ -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; }