CClearSelectionCommand: Make use of override
This commit is contained in:
parent
f09f04cfe0
commit
169b405678
|
@ -13,7 +13,7 @@ class CClearSelectionCommand : public IUndoCommand
|
||||||
CNodePtrList mOldSelection;
|
CNodePtrList mOldSelection;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CClearSelectionCommand(CNodeSelection *pSelection)
|
explicit CClearSelectionCommand(CNodeSelection *pSelection)
|
||||||
: IUndoCommand("Clear Selection"),
|
: IUndoCommand("Clear Selection"),
|
||||||
mpSelection(pSelection)
|
mpSelection(pSelection)
|
||||||
{
|
{
|
||||||
|
@ -21,9 +21,9 @@ public:
|
||||||
mOldSelection << *It;
|
mOldSelection << *It;
|
||||||
}
|
}
|
||||||
|
|
||||||
void undo() { mpSelection->SetSelectedNodes(mOldSelection.DereferenceList()); }
|
void undo() override { mpSelection->SetSelectedNodes(mOldSelection.DereferenceList()); }
|
||||||
void redo() { mpSelection->Clear(); }
|
void redo() override { mpSelection->Clear(); }
|
||||||
bool AffectsCleanState() const { return false; }
|
bool AffectsCleanState() const override { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CCLEARSELECTIONCOMMAND_H
|
#endif // CCLEARSELECTIONCOMMAND_H
|
||||||
|
|
Loading…
Reference in New Issue