Warning, file /sdk/clazy/tests/unneeded-cast/dynamic_cast_over_qobjectcast.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 #include <QtCore/QObject> 0002 0003 struct MyObj : public QObject {}; 0004 0005 void testQObjectCast(QObject *o) 0006 { 0007 dynamic_cast<MyObj*>(o); // OK 0008 }