]> git.sesse.net Git - kdenlive/blobdiff - src/graphicsscenerectmove.cpp
Fix a couple of compile warnings because of unused and uninitialized variables.
[kdenlive] / src / graphicsscenerectmove.cpp
index a905d1ae13ab140911b771b2ed27eb66208f6886..99f93eeb0a12c5e3dd6bf9bb80e458b05c09aa9d 100644 (file)
@@ -154,14 +154,12 @@ void GraphicsSceneRectMove::mousePressEvent(QGraphicsSceneMouseEvent* e)
     m_resizeMode = NoResize;
     const QList <QGraphicsItem *> list = items(QRectF(p , QSizeF(4, 4)).toRect());
     QGraphicsItem *item = NULL;
-    bool hasSelected = false;
 
     if (m_tool == TITLE_SELECT) {
         foreach(QGraphicsItem *g, list) {
             kDebug() << " - - CHECKING ITEM Z:" << g->zValue() << ", TYPE: " << g->type();
             // check is there is a selected item in list
             if (g->zValue() > -1000 && g->isSelected()) {
-                hasSelected = true;
                 item = g;
                 break;
             }