diff --git a/src/Editor/Undo/IUndoCommand.h b/src/Editor/Undo/IUndoCommand.h index 5458c93f..e72578d9 100644 --- a/src/Editor/Undo/IUndoCommand.h +++ b/src/Editor/Undo/IUndoCommand.h @@ -6,10 +6,10 @@ class IUndoCommand : public QUndoCommand { public: - IUndoCommand(QUndoCommand *pParent = 0) + explicit IUndoCommand(QUndoCommand *pParent = nullptr) : QUndoCommand(pParent) {} - IUndoCommand(const QString& rkText, QUndoCommand *pParent = 0) + explicit IUndoCommand(const QString& rkText, QUndoCommand *pParent = nullptr) : QUndoCommand(rkText, pParent) {} virtual bool AffectsCleanState() const = 0;