TD: modernize C++: use override
This commit is contained in:
@@ -38,7 +38,7 @@ class GeomFormat;
|
||||
|
||||
class TechDrawExport PropertyGeomFormatList: public App::PropertyLists
|
||||
{
|
||||
TYPESYSTEM_HEADER();
|
||||
TYPESYSTEM_HEADER_WITH_OVERRIDE();
|
||||
|
||||
public:
|
||||
/**
|
||||
@@ -51,10 +51,10 @@ public:
|
||||
* A destructor.
|
||||
* A more elaborate description of the destructor.
|
||||
*/
|
||||
virtual ~PropertyGeomFormatList();
|
||||
~PropertyGeomFormatList() override;
|
||||
|
||||
virtual void setSize(int newSize);
|
||||
virtual int getSize(void) const;
|
||||
void setSize(int newSize) override;
|
||||
int getSize() const override;
|
||||
|
||||
/** Sets the property
|
||||
*/
|
||||
@@ -66,20 +66,20 @@ public:
|
||||
return _lValueList[idx];
|
||||
}
|
||||
|
||||
const std::vector<GeomFormat*> &getValues(void) const {
|
||||
const std::vector<GeomFormat*> &getValues() const {
|
||||
return _lValueList;
|
||||
}
|
||||
|
||||
virtual PyObject *getPyObject(void);
|
||||
virtual void setPyObject(PyObject *);
|
||||
PyObject *getPyObject() override;
|
||||
void setPyObject(PyObject *) override;
|
||||
|
||||
virtual void Save(Base::Writer &writer) const;
|
||||
virtual void Restore(Base::XMLReader &reader);
|
||||
void Save(Base::Writer &writer) const override;
|
||||
void Restore(Base::XMLReader &reader) override;
|
||||
|
||||
virtual App::Property *Copy(void) const;
|
||||
virtual void Paste(const App::Property &from);
|
||||
App::Property *Copy() const override;
|
||||
void Paste(const App::Property &from) override;
|
||||
|
||||
virtual unsigned int getMemSize(void) const;
|
||||
unsigned int getMemSize() const override;
|
||||
|
||||
private:
|
||||
std::vector<GeomFormat*> _lValueList;
|
||||
|
||||
Reference in New Issue
Block a user