[calligra/calligra/2.9] krita/ui/flake: Silence warning about unused variable

Boudewijn Rempt boud at valdyas.org
Thu Jan 8 14:54:38 UTC 2015


Git commit 6e420a80f394deb59ba9bb8c715943cf9021a78f by Boudewijn Rempt.
Committed on 08/01/2015 at 11:13.
Pushed by rempt into branch 'calligra/2.9'.

Silence warning about unused variable

But since we create it here -- what are we going to do with it? Shouldn't
it be deleted?

CCMAIL:kimageshop at kde.org

M  +2    -0    krita/ui/flake/kis_shape_controller.cpp

http://commits.kde.org/calligra/6e420a80f394deb59ba9bb8c715943cf9021a78f

diff --git a/krita/ui/flake/kis_shape_controller.cpp b/krita/ui/flake/kis_shape_controller.cpp
index ea32b87..e6e281e 100644
--- a/krita/ui/flake/kis_shape_controller.cpp
+++ b/krita/ui/flake/kis_shape_controller.cpp
@@ -92,6 +92,8 @@ void KisShapeController::addNodeImpl(KisNodeSP node, KisNodeSP parent, KisNodeSP
 {
     KisNodeShape *newShape =
         m_d->shapesGraph.addNode(node, parent, aboveThis);
+    // XXX: what are we going to do with this shape?
+    Q_UNUSED(newShape);
 
     KisShapeLayer *shapeLayer = dynamic_cast<KisShapeLayer*>(node.data());
     if (shapeLayer) {



More information about the kimageshop mailing list