Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
MoveStrokeStrategy: Const Qualify Nodes and Remove Duplicate Header
Ricky Ringler7f5308462521
diff --git a/krita/data/aboutdata/developers.txt b/krita/data/aboutdata/developers.txtindex 454dbec972..40999f8be7 100644--- a/krita/data/aboutdata/developers.txt+++ b/krita/data/aboutdata/developers.txt@@ -155,6 +155,7 @@ Rafael Fernández LópezRaphael LangerhorstRasyuqa A. HafiidhRex Dieter+Ricky RinglerRob BuisRoopesh ChanderSahil Nagpaldiff --git a/libs/ui/tool/strokes/move_stroke_strategy.cpp b/libs/ui/tool/strokes/move_stroke_strategy.cppindex a01a6b116c..7ebce67d17 100644--- a/libs/ui/tool/strokes/move_stroke_strategy.cpp+++ b/libs/ui/tool/strokes/move_stroke_strategy.cpp@@ -27,7 +27,6 @@#include "kis_transform_mask_params_interface.h"#include "kis_keyframe_channel.h"#include "kis_scalar_keyframe_channel.h"-#include "kis_image_animation_interface.h"#include "commands_new/KisSimpleModifyTransformMaskCommand.h"#include "commands_new/KisLazyCreateTransformMaskKeyframesCommand.h"@@ -194,7 +193,7 @@ struct MoveStrokeStrategy::Private {};template <typename Functor>-void MoveStrokeStrategy::recursiveApplyNodes(KisNodeList nodes, Functor &&func) {+void MoveStrokeStrategy::recursiveApplyNodes(const KisNodeList &nodes, Functor &&func) {Q_FOREACH(KisNodeSP subtree, nodes) {KisLayerUtils::recursiveApplyNodes(subtree,[&] (KisNodeSP node) {diff --git a/libs/ui/tool/strokes/move_stroke_strategy.h b/libs/ui/tool/strokes/move_stroke_strategy.hindex 17236e8c16..02877b28b4 100644--- a/libs/ui/tool/strokes/move_stroke_strategy.h+++ b/libs/ui/tool/strokes/move_stroke_strategy.h@@ -111,7 +111,7 @@ private:const int m_updateInterval {30};template <typename Functor>- void recursiveApplyNodes(KisNodeList nodes, Functor &&func);+ void recursiveApplyNodes(const KisNodeList &nodes, Functor &&func);};#endif /* __MOVE_STROKE_STRATEGY_H */