File indexing completed on 2024-05-05 05:41:38

0001 #include <QtCore/QFileInfo>
0002 
0003 int test1()
0004 {
0005     if (QFileInfo("foo").exists()) // Warning
0006         return 0;
0007 
0008     if (QFileInfo::exists("foo")) // OK
0009         return 0;
0010 
0011     QFileInfo info;
0012     if (info.exists("foo")) // OK
0013         return 0;
0014 
0015     if (QFileInfo(QFile("foo")).exists()) // OK
0016         return 0;
0017 
0018     return 1;
0019 }