Commit ec884202 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Warning--: missing override

parent e10a23ca
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
struct KisToolMoveState : KisToolChangesTrackerData, boost::equality_comparable<KisToolMoveState> struct KisToolMoveState : KisToolChangesTrackerData, boost::equality_comparable<KisToolMoveState>
{ {
KisToolMoveState(QPoint _accumulatedOffset) : accumulatedOffset(_accumulatedOffset) {} 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) { bool operator ==(const KisToolMoveState &rhs) {
return accumulatedOffset == rhs.accumulatedOffset; return accumulatedOffset == rhs.accumulatedOffset;
...@@ -246,7 +246,7 @@ void KisToolMove::notifyGuiAfterMove(bool showFloatingMessage) ...@@ -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; if (!m_strokeId) return false;
...@@ -665,7 +665,7 @@ void KisToolMove::requestHandlesRectUpdate() ...@@ -665,7 +665,7 @@ void KisToolMove::requestHandlesRectUpdate()
notifyGuiAfterMove(false); notifyGuiAfterMove(false);
} }
void KisToolMove::slotNodeChanged(KisNodeList nodes) void KisToolMove::slotNodeChanged(const KisNodeList &nodes)
{ {
if (m_strokeId && !tryEndPreviousStroke(nodes)) { if (m_strokeId && !tryEndPreviousStroke(nodes)) {
return; return;
......
...@@ -116,7 +116,7 @@ public Q_SLOTS: ...@@ -116,7 +116,7 @@ public Q_SLOTS:
void moveBySpinX(int newX); void moveBySpinX(int newX);
void moveBySpinY(int newY); void moveBySpinY(int newY);
void slotNodeChanged(KisNodeList nodes); void slotNodeChanged(const KisNodeList &nodes);
void slotSelectionChanged(); void slotSelectionChanged();
void commitChanges(); void commitChanges();
...@@ -135,7 +135,7 @@ private: ...@@ -135,7 +135,7 @@ private:
QPoint currentOffset() const; QPoint currentOffset() const;
void notifyGuiAfterMove(bool showFloatingMessage = true); void notifyGuiAfterMove(bool showFloatingMessage = true);
bool tryEndPreviousStroke(KisNodeList nodes); bool tryEndPreviousStroke(const KisNodeList &nodes);
KisNodeList fetchSelectedNodes(MoveToolMode mode, const QPoint *pixelPoint, KisSelectionSP selection); KisNodeList fetchSelectedNodes(MoveToolMode mode, const QPoint *pixelPoint, KisSelectionSP selection);
void requestHandlesRectUpdate(); 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