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:
@@ -1417,7 +1417,7 @@ void GdbEngine::handleStopResponse(const GdbMi &data)
|
||||
//qDebug() << "BP " << rid << data.toString();
|
||||
// Quickly set the location marker.
|
||||
if (lineNumber && !boolSetting(OperateByInstruction)
|
||||
&& QFileInfo(fullName).exists()
|
||||
&& QFileInfo::exists(fullName)
|
||||
&& !isQmlStepBreakpoint(rid)
|
||||
&& !isQFatalBreakpoint(rid))
|
||||
gotoLocation(Location(fullName, lineNumber));
|
||||
|
||||
Reference in New Issue
Block a user