diff --git a/src/Editor/Undo/IEditPropertyCommand.cpp b/src/Editor/Undo/IEditPropertyCommand.cpp index c4da47bf..05380125 100644 --- a/src/Editor/Undo/IEditPropertyCommand.cpp +++ b/src/Editor/Undo/IEditPropertyCommand.cpp @@ -41,8 +41,6 @@ IEditPropertyCommand::IEditPropertyCommand( , mpProperty(pProperty) , mpModel(pModel) , mIndex(kIndex) - , mSavedOldData(false) - , mSavedNewData(false) { ASSERT(mpProperty); diff --git a/src/Editor/Undo/IEditPropertyCommand.h b/src/Editor/Undo/IEditPropertyCommand.h index bf91540a..445ead84 100644 --- a/src/Editor/Undo/IEditPropertyCommand.h +++ b/src/Editor/Undo/IEditPropertyCommand.h @@ -15,9 +15,9 @@ protected: IProperty* mpProperty; CPropertyModel* mpModel; QModelIndex mIndex; - bool mCommandEnded; - bool mSavedOldData; - bool mSavedNewData; + bool mCommandEnded = false; + bool mSavedOldData = false; + bool mSavedNewData = false; /** Save the current state of the object properties to the given data buffer */ void SaveObjectStateToArray(std::vector& rVector); @@ -33,7 +33,7 @@ public: const QString& kCommandName = "Edit Property" ); - virtual ~IEditPropertyCommand() {} + ~IEditPropertyCommand() override = default; virtual void SaveOldData(); virtual void SaveNewData(); @@ -45,11 +45,11 @@ public: virtual void GetObjectDataPointers(QVector& rOutPointers) const = 0; /** IUndoCommand/QUndoCommand interface */ - int id() const; - bool mergeWith(const QUndoCommand *pkOther); - void undo(); - void redo(); - bool AffectsCleanState() const; + int id() const override; + bool mergeWith(const QUndoCommand *pkOther) override; + void undo() override; + void redo() override; + bool AffectsCleanState() const override; }; #endif // IEDITPROPERTYCOMMAND_H