Warning, /sdk/clazy/tests/use-arrow-operator-instead-of-data/main.cpp.fixed.expected is written in an unsupported language. File is not indexed.

0001 #include <QtCore/QObject>
0002 #include <QtCore/QScopedPointer>
0003 #include <QtCore/QPointer>
0004 #include <QtCore/QSharedPointer>
0005 
0006 void test()
0007 {
0008     QScopedPointer<QObject> ptr(new QObject);
0009     ptr->deleteLater(); // Warn
0010 
0011     QPointer<QObject> qptr(new QObject);
0012     qptr->deleteLater();   // Warn
0013 
0014     QSharedPointer<QObject> qsptr(new QObject);
0015     qsptr->deleteLater(); // Warn
0016 
0017     QScopedPointer<QObject> okPtr(new QObject);
0018     okPtr->deleteLater();
0019 }
0020