forked from qt-creator/qt-creator
Use QFileInfo::exist(f) instead of QFileInfo(f).exists() if possible
Faster. Change-Id: I91aa67462e11ff3258600d7f158de79942d0dc81 Reviewed-by: Marc Reilly <marc.reilly@gmail.com> Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -768,7 +768,7 @@ void PdbEngine::handleBacktrace(const PdbResponse &response)
|
||||
frame.line = lineNumber;
|
||||
frame.function = _(line.mid(pos2 + 1));
|
||||
frame.usable = QFileInfo(frame.file).isReadable();
|
||||
if (frame.line > 0 && QFileInfo(frame.file).exists()) {
|
||||
if (frame.line > 0 && QFileInfo::exists(frame.file)) {
|
||||
if (line.startsWith("> "))
|
||||
currentIndex = level;
|
||||
frame.level = level;
|
||||
|
||||
Reference in New Issue
Block a user