mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-15 01:25:51 +00:00
TSerializeUndoCommand: Make use of override
This commit is contained in:
parent
24a69164f7
commit
2d9406a287
@ -39,12 +39,12 @@ public:
|
||||
}
|
||||
|
||||
/** IUndoCommand interface */
|
||||
virtual int id() const override
|
||||
int id() const override
|
||||
{
|
||||
return FOURCC('TSUC');
|
||||
}
|
||||
|
||||
virtual void undo() override
|
||||
void undo() override
|
||||
{
|
||||
// Restore old state of object
|
||||
CMemoryInStream In(&mOldData[0], mOldData.size(), EEndian::SystemEndian);
|
||||
@ -52,7 +52,7 @@ public:
|
||||
mpObject->Serialize(Reader);
|
||||
}
|
||||
|
||||
virtual void redo() override
|
||||
void redo() override
|
||||
{
|
||||
// First call when command is pushed - save new state of object
|
||||
if (mNewData.empty())
|
||||
@ -82,7 +82,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
virtual bool mergeWith(const QUndoCommand* pkOther) override
|
||||
bool mergeWith(const QUndoCommand* pkOther) override
|
||||
{
|
||||
if (!mIsActionComplete && pkOther->id() == id())
|
||||
{
|
||||
@ -109,7 +109,7 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual bool AffectsCleanState() const override
|
||||
bool AffectsCleanState() const override
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user