diff --git a/src/Mod/Sketcher/App/SketchObject.h b/src/Mod/Sketcher/App/SketchObject.h index 57c02b3bce..6ff1fa374d 100644 --- a/src/Mod/Sketcher/App/SketchObject.h +++ b/src/Mod/Sketcher/App/SketchObject.h @@ -55,7 +55,7 @@ class SketchAnalysis; class SketcherExport SketchObject : public Part::Part2DObject { - PROPERTY_HEADER(Sketcher::SketchObject); + PROPERTY_HEADER_WITH_OVERRIDE(Sketcher::SketchObject); public: SketchObject(); @@ -67,12 +67,12 @@ public: App ::PropertyLinkSubList ExternalGeometry; /** @name methods override Feature */ //@{ - short mustExecute() const; + short mustExecute() const override; /// recalculate the Feature (if no recompute is needed see also solve() and solverNeedsUpdate boolean) - App::DocumentObjectExecReturn *execute(void); + App::DocumentObjectExecReturn *execute(void) override; /// returns the type name of the ViewProvider - const char* getViewProviderName(void) const { + const char* getViewProviderName(void) const override { return "SketcherGui::ViewProviderSketch"; } //@} @@ -302,17 +302,17 @@ public: int port_reversedExternalArcs(bool justAnalyze); // from base class - virtual PyObject *getPyObject(void); - virtual unsigned int getMemSize(void) const; - virtual void Save(Base::Writer &/*writer*/) const; - virtual void Restore(Base::XMLReader &/*reader*/); + virtual PyObject *getPyObject(void) override; + virtual unsigned int getMemSize(void) const override; + virtual void Save(Base::Writer &/*writer*/) const override; + virtual void Restore(Base::XMLReader &/*reader*/) override; /// returns the number of construction lines (to be used as axes) - virtual int getAxisCount(void) const; + virtual int getAxisCount(void) const override; /// retrieves an axis iterating through the construction lines of the sketch (indices start at 0) - virtual Base::Axis getAxis(int axId) const; + virtual Base::Axis getAxis(int axId) const override; /// verify and accept the assigned geometry - virtual void acceptGeometry(); + virtual void acceptGeometry() override; /// Check if constraint has invalid indexes bool evaluateConstraint(const Constraint *constraint) const; /// Check for constraints with invalid indexes @@ -410,11 +410,11 @@ public: protected: /// get called by the container when a property has changed - virtual void onChanged(const App::Property* /*prop*/); - virtual void onDocumentRestored(); - virtual void restoreFinished(); + virtual void onChanged(const App::Property* /*prop*/) override; + virtual void onDocumentRestored() override; + virtual void restoreFinished() override; - virtual void setExpression(const App::ObjectIdentifier &path, boost::shared_ptr expr); + virtual void setExpression(const App::ObjectIdentifier &path, boost::shared_ptr expr) override; std::string validateExpression(const App::ObjectIdentifier &path, boost::shared_ptr expr);