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

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

SVN commit 1012839 by mlaurent:

we don't test dynamic_cast => use static_cast


 M  +2 -2      launch.cpp  


--- trunk/KDE/kdebase/workspace/plasma/containmentactions/applauncher/launch.cpp #1012838:1012839
@@ -44,10 +44,10 @@
     QPoint screenPos;
     switch (event->type()) {
         case QEvent::GraphicsSceneMouseRelease:
-            screenPos = (dynamic_cast<QGraphicsSceneMouseEvent*>(event))->screenPos();
+            screenPos = (static_cast<QGraphicsSceneMouseEvent*>(event))->screenPos();
             break;
         case QEvent::GraphicsSceneWheel:
-            screenPos = (dynamic_cast<QGraphicsSceneWheelEvent*>(event))->screenPos();
+            screenPos = (static_cast<QGraphicsSceneWheelEvent*>(event))->screenPos();
             break;
         default:
             kDebug() << "unexpected event type" << event->type();
[prev in list] [next in list] [prev in thread] [next in thread] 

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