Use preferred QFileInfo::exists API as documented
This commit is contained in:
parent
c405877801
commit
b9b58b6e66
1 changed files with 1 additions and 1 deletions
|
@ -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"));
|
||||
|
|
Loading…
Reference in a new issue