[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    [calligra/calligra/2.9] krita/ui/flake: Silence warning about unused variable
From:       Boudewijn Rempt <boud () valdyas ! org>
Date:       2015-01-08 14:54:38
Message-ID: E1Y9ETu-0003PK-Hz () scm ! kde ! org
[Download RAW message or body]

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@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) {

_______________________________________________
Krita mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic