diff --git a/src/jasper/modules/world/src/studio/worldobjectseteditor/commands/editobject.cpp b/src/jasper/modules/world/src/studio/worldobjectseteditor/commands/editobject.cpp index 20dc822..673a6a0 100644 --- a/src/jasper/modules/world/src/studio/worldobjectseteditor/commands/editobject.cpp +++ b/src/jasper/modules/world/src/studio/worldobjectseteditor/commands/editobject.cpp @@ -33,7 +33,7 @@ int EditObjectName::commandId() const noexcept { return static_cast(WorldObjCommand::EditObjectName); } -bool EditObjectName::mergeWith(UndoCommand const&cmd) noexcept { +bool EditObjectName::mergeWith(UndoCommand &cmd) noexcept { auto const en = dynamic_cast(&cmd); if (en && m_objIdx == en->m_objIdx) { m_newVal = en->m_newVal; @@ -65,7 +65,7 @@ int EditObjectInterval::commandId() const noexcept { return static_cast(WorldObjCommand::EditObjectInterval); } -bool EditObjectInterval::mergeWith(UndoCommand const&cmd) noexcept { +bool EditObjectInterval::mergeWith(UndoCommand &cmd) noexcept { auto const en = dynamic_cast(&cmd); if (en && m_objIdx == en->m_objIdx) { m_newVal = en->m_newVal; diff --git a/src/jasper/modules/world/src/studio/worldobjectseteditor/commands/editobject.hpp b/src/jasper/modules/world/src/studio/worldobjectseteditor/commands/editobject.hpp index b659580..2fbcf1f 100644 --- a/src/jasper/modules/world/src/studio/worldobjectseteditor/commands/editobject.hpp +++ b/src/jasper/modules/world/src/studio/worldobjectseteditor/commands/editobject.hpp @@ -24,7 +24,7 @@ class EditObjectName: public studio::UndoCommand { ox::Error undo() noexcept override; [[nodiscard]] int commandId() const noexcept override; - bool mergeWith(UndoCommand const&cmd) noexcept override; + bool mergeWith(UndoCommand &cmd) noexcept override; }; class EditObjectInterval: public studio::UndoCommand { @@ -39,7 +39,7 @@ class EditObjectInterval: public studio::UndoCommand { ox::Error undo() noexcept override; [[nodiscard]] int commandId() const noexcept override; - bool mergeWith(UndoCommand const&cmd) noexcept override; + bool mergeWith(UndoCommand &cmd) noexcept override; }; class EditObjectSubSheet: public studio::UndoCommand {