forked from qt-creator/qt-creator
Replace QFileInfo::fileName() with FileName::fileName()
Change-Id: I4852ff215abf25649fc5eac1e922ae901839ca3d Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
#include <debugger/shared/hostutils.h>
|
||||
#include <debugger/threaddata.h>
|
||||
|
||||
#include <utils/fileutils.h>
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
#include <QDir>
|
||||
@@ -87,7 +88,7 @@ static inline QString cdbBreakPointFileName(const BreakpointParameters &bp,
|
||||
if (bp.fileName.isEmpty())
|
||||
return bp.fileName;
|
||||
if (bp.pathUsage == BreakpointUseShortPath)
|
||||
return QFileInfo(bp.fileName).fileName();
|
||||
return Utils::FileName::fromString(bp.fileName).fileName();
|
||||
return cdbSourcePathMapping(QDir::toNativeSeparators(bp.fileName), sourcePathMapping, SourceToDebugger);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user