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:
@@ -1860,7 +1860,7 @@ QString GdbEngine::cleanupFullName(const QString &fileName)
|
||||
}
|
||||
|
||||
cleanFilePath.clear();
|
||||
const QString base = QFileInfo(fileName).fileName();
|
||||
const QString base = FileName::fromString(fileName).fileName();
|
||||
|
||||
QMap<QString, QString>::const_iterator jt = m_baseNameToFullName.find(base);
|
||||
while (jt != m_baseNameToFullName.end() && jt.key() == base) {
|
||||
@@ -2438,7 +2438,7 @@ QString GdbEngine::breakLocation(const QString &file) const
|
||||
{
|
||||
QString where = m_fullToShortName.value(file);
|
||||
if (where.isEmpty())
|
||||
return QFileInfo(file).fileName();
|
||||
return FileName::fromString(file).fileName();
|
||||
return where;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user