CClearSelectionCommand: Make use of override
@@ -13,7 +13,7 @@ class CClearSelectionCommand : public IUndoCommand
CNodePtrList mOldSelection;
public:
- CClearSelectionCommand(CNodeSelection *pSelection)
+ explicit CClearSelectionCommand(CNodeSelection *pSelection)
: IUndoCommand("Clear Selection"),
mpSelection(pSelection)
{
@@ -21,9 +21,9 @@ public:
mOldSelection << *It;
}
- void undo() { mpSelection->SetSelectedNodes(mOldSelection.DereferenceList()); }
- void redo() { mpSelection->Clear(); }
- bool AffectsCleanState() const { return false; }
+ void undo() override { mpSelection->SetSelectedNodes(mOldSelection.DereferenceList()); }
+ void redo() override { mpSelection->Clear(); }
+ bool AffectsCleanState() const override { return false; }
};
#endif // CCLEARSELECTIONCOMMAND_H
