Commit ec884202 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Warning--: missing override

parent e10a23ca
......@@ -52,7 +52,7 @@
struct KisToolMoveState : KisToolChangesTrackerData, boost::equality_comparable<KisToolMoveState>
{
KisToolMoveState(QPoint _accumulatedOffset) : accumulatedOffset(_accumulatedOffset) {}
KisToolChangesTrackerData* clone() const { return new KisToolMoveState(*this); }
KisToolChangesTrackerData* clone() const override { return new KisToolMoveState(*this); }
bool operator ==(const KisToolMoveState &rhs) {
return accumulatedOffset == rhs.accumulatedOffset;
......@@ -246,7 +246,7 @@ void KisToolMove::notifyGuiAfterMove(bool showFloatingMessage)
}
}
bool KisToolMove::tryEndPreviousStroke(KisNodeList nodes)
bool KisToolMove::tryEndPreviousStroke(const KisNodeList &nodes)
{
if (!m_strokeId) return false;
......@@ -665,7 +665,7 @@ void KisToolMove::requestHandlesRectUpdate()
notifyGuiAfterMove(false);
}
void KisToolMove::slotNodeChanged(KisNodeList nodes)
void KisToolMove::slotNodeChanged(const KisNodeList &nodes)
{
if (m_strokeId && !tryEndPreviousStroke(nodes)) {
return;
......
......@@ -116,7 +116,7 @@ public Q_SLOTS:
void moveBySpinX(int newX);
void moveBySpinY(int newY);
void slotNodeChanged(KisNodeList nodes);
void slotNodeChanged(const KisNodeList &nodes);
void slotSelectionChanged();
void commitChanges();
......@@ -135,7 +135,7 @@ private:
QPoint currentOffset() const;
void notifyGuiAfterMove(bool showFloatingMessage = true);
bool tryEndPreviousStroke(KisNodeList nodes);
bool tryEndPreviousStroke(const KisNodeList &nodes);
KisNodeList fetchSelectedNodes(MoveToolMode mode, const QPoint *pixelPoint, KisSelectionSP selection);
void requestHandlesRectUpdate();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment