forked from qt-creator/qt-creator
Debugger: Compile fix for Qt6
QMap and QMultiMap are distinct types in Qt6 Task-number: QTCREATORBUG-24098 Change-Id: I959012739231fb3b184dcc13cebd119c83059a99 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -1630,7 +1630,7 @@ QString GdbEngine::cleanupFullName(const QString &fileName)
|
||||
cleanFilePath.clear();
|
||||
const QString base = FilePath::fromString(fileName).fileName();
|
||||
|
||||
QMap<QString, QString>::const_iterator jt = m_baseNameToFullName.constFind(base);
|
||||
QMultiMap<QString, QString>::const_iterator jt = m_baseNameToFullName.constFind(base);
|
||||
while (jt != m_baseNameToFullName.constEnd() && jt.key() == base) {
|
||||
// FIXME: Use some heuristics to find the "best" match.
|
||||
return jt.value();
|
||||
|
Reference in New Issue
Block a user