Misc: modernize C++: use override
This commit is contained in:
@@ -123,10 +123,10 @@ class MeshExport MeshTopFacetVisitor : public MeshFacetVisitor
|
||||
{
|
||||
public:
|
||||
MeshTopFacetVisitor (std::vector<FacetIndex> &raulNB) : _raulNeighbours(raulNB) {}
|
||||
~MeshTopFacetVisitor () override {}
|
||||
~MeshTopFacetVisitor () override = default;
|
||||
/** Collects the facet indices. */
|
||||
virtual bool Visit (const MeshFacet &rclFacet, const MeshFacet &rclFrom,
|
||||
FacetIndex ulFInd, unsigned long) override
|
||||
bool Visit (const MeshFacet &rclFacet, const MeshFacet &rclFrom,
|
||||
FacetIndex ulFInd, unsigned long) override
|
||||
{
|
||||
(void)rclFacet;
|
||||
(void)rclFrom;
|
||||
|
||||
@@ -75,7 +75,7 @@ public:
|
||||
void helpRequested() override;
|
||||
|
||||
/// returns for Close and Help button
|
||||
virtual QDialogButtonBox::StandardButtons getStandardButtons() const override
|
||||
QDialogButtonBox::StandardButtons getStandardButtons() const override
|
||||
{ return QDialogButtonBox::Ok|QDialogButtonBox::Cancel; }
|
||||
|
||||
protected:
|
||||
|
||||
@@ -73,7 +73,7 @@ public:
|
||||
std::vector<std::string> getDisplayModes() const override;
|
||||
void updateData(const App::Property*) override;
|
||||
void recomputeBoundingBox();
|
||||
virtual QIcon getIcon() const override;
|
||||
QIcon getIcon() const override;
|
||||
|
||||
bool useNewSelectionModel() const override;
|
||||
std::string getElement(const SoDetail *) const override;
|
||||
|
||||
@@ -71,7 +71,7 @@ class DrawSketchHandlerTrimming: public DrawSketchHandler
|
||||
{
|
||||
public:
|
||||
DrawSketchHandlerTrimming() = default;
|
||||
virtual ~DrawSketchHandlerTrimming()
|
||||
~DrawSketchHandlerTrimming() override
|
||||
{
|
||||
Gui::Selection().rmvSelectionGate();
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
* A destructor.
|
||||
* A more elaborate description of the destructor.
|
||||
*/
|
||||
virtual ~PropertyCosmeticEdgeList() override;
|
||||
~PropertyCosmeticEdgeList() override;
|
||||
|
||||
void setSize(int newSize) override;
|
||||
int getSize(void) const override;
|
||||
|
||||
@@ -48,7 +48,7 @@ class TaskDimRepair: public QWidget
|
||||
|
||||
public:
|
||||
TaskDimRepair(TechDraw::DrawViewDimension* inDvd);
|
||||
~TaskDimRepair();
|
||||
~TaskDimRepair() override;
|
||||
|
||||
public:
|
||||
virtual bool accept();
|
||||
@@ -58,7 +58,7 @@ protected Q_SLOTS:
|
||||
void slotUseSelection();
|
||||
|
||||
protected:
|
||||
void changeEvent(QEvent* e);
|
||||
void changeEvent(QEvent* e) override;
|
||||
|
||||
void setUiPrimary();
|
||||
void replaceReferences();
|
||||
|
||||
Reference in New Issue
Block a user