diff --git a/src/libs/vtools/undocommands/deletepiece.cpp b/src/libs/vtools/undocommands/deletepiece.cpp index 94a35d3d2..a2e9ef6d2 100644 --- a/src/libs/vtools/undocommands/deletepiece.cpp +++ b/src/libs/vtools/undocommands/deletepiece.cpp @@ -43,7 +43,7 @@ #include "../vwidgets/vmaingraphicsview.h" //--------------------------------------------------------------------------------------------------------------------- -DeletePiece::DeletePiece(VAbstractPattern *doc, quint32 id, VContainer data, VMainGraphicsScene *scene, +DeletePiece::DeletePiece(VAbstractPattern *doc, quint32 id, const VContainer &data, VMainGraphicsScene *scene, QUndoCommand *parent) : VUndoCommand(QDomElement(), doc, parent), m_parentNode(), diff --git a/src/libs/vtools/undocommands/deletepiece.h b/src/libs/vtools/undocommands/deletepiece.h index e10907958..a68672577 100644 --- a/src/libs/vtools/undocommands/deletepiece.h +++ b/src/libs/vtools/undocommands/deletepiece.h @@ -39,7 +39,7 @@ class DeletePiece : public VUndoCommand { Q_OBJECT public: - DeletePiece(VAbstractPattern *doc, quint32 id, VContainer data, VMainGraphicsScene *scene, + DeletePiece(VAbstractPattern *doc, quint32 id, const VContainer &data, VMainGraphicsScene *scene, QUndoCommand *parent = nullptr); virtual ~DeletePiece();