Use preferred QFileInfo::exists API as documented

This commit is contained in:
Aleix Pol 2021-05-13 19:07:30 +02:00
parent c405877801
commit b9b58b6e66

View file

@ -82,7 +82,7 @@ QString FTraceLogger::filePath()
const int start = line.indexOf(' ') + 1;
const int end = line.indexOf(' ', start);
const QString dirPath(line.mid(start, end - start));
if (dirPath.isEmpty() || !QFileInfo(dirPath).exists()) {
if (dirPath.isEmpty() || !QFileInfo::exists(dirPath)) {
return QFileInfo();
}
return QFileInfo(QDir(dirPath), QStringLiteral("trace_marker"));