mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-09 13:37:43 +00:00
IEditPropertyCommand: Mark IsNewDataDifferent() as const
This doesn't modify class state.
This commit is contained in:
@@ -75,7 +75,7 @@ void IEditPropertyCommand::SaveNewData()
|
|||||||
mSavedNewData = true;
|
mSavedNewData = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IEditPropertyCommand::IsNewDataDifferent()
|
bool IEditPropertyCommand::IsNewDataDifferent() const
|
||||||
{
|
{
|
||||||
if (mOldData.size() != mNewData.size()) return true;
|
if (mOldData.size() != mNewData.size()) return true;
|
||||||
return memcmp(mOldData.data(), mNewData.data(), mNewData.size()) != 0;
|
return memcmp(mOldData.data(), mNewData.data(), mNewData.size()) != 0;
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ public:
|
|||||||
virtual void SaveOldData();
|
virtual void SaveOldData();
|
||||||
virtual void SaveNewData();
|
virtual void SaveNewData();
|
||||||
|
|
||||||
bool IsNewDataDifferent();
|
bool IsNewDataDifferent() const;
|
||||||
void SetEditComplete(bool IsComplete);
|
void SetEditComplete(bool IsComplete);
|
||||||
|
|
||||||
/** Interface */
|
/** Interface */
|
||||||
|
|||||||
Reference in New Issue
Block a user