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

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/containmentactions/paste
From:       Laurent Montel <montel () kde ! org>
Date:       2009-08-18 7:01:10
Message-ID: 1250578870.796474.3800.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1012821 by mlaurent:

We don't test return of dynamic_cast => use static_cast


 M  +2 -2      paste.cpp  


--- trunk/KDE/kdebase/workspace/plasma/containmentactions/paste/paste.cpp #1012820:1012821
@@ -35,12 +35,12 @@
     QPoint screenPos;
     switch (event->type()) {
         case QEvent::GraphicsSceneMouseRelease: {
-            QGraphicsSceneMouseEvent *e = dynamic_cast<QGraphicsSceneMouseEvent*>(event);
+            QGraphicsSceneMouseEvent *e = static_cast<QGraphicsSceneMouseEvent*>(event);
             scenePos = e->scenePos();
             screenPos = e->screenPos();
             break; }
         case QEvent::GraphicsSceneWheel: {
-            QGraphicsSceneWheelEvent *e = dynamic_cast<QGraphicsSceneWheelEvent*>(event);
+            QGraphicsSceneWheelEvent *e = static_cast<QGraphicsSceneWheelEvent*>(event);
             scenePos = e->scenePos();
             screenPos = e->screenPos();
             break; }
[prev in list] [next in list] [prev in thread] [next in thread] 

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