forked from qt-creator/qt-creator
Fix Qt 6 build of ProjectExplorer and targets & build systems
QStringRef is gone. qsizetype vs int. QMultiHash::insertMulti is gone. QXmlStreamWriter writes UTF-8 by default. Task-number: QTCREATORBUG-24098 Change-Id: Id217e40a1f17993a84fc725976e9cb84618b0580 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -85,7 +85,7 @@ static bool lineIsEmpty(const QString &line)
|
||||
|
||||
static int paranthesesLevel(const QString &line)
|
||||
{
|
||||
const QStringRef beforeComment = line.midRef(0, line.indexOf(QLatin1Char('#')));
|
||||
const QString beforeComment = line.mid(0, line.indexOf(QLatin1Char('#')));
|
||||
const int opening = beforeComment.count(QLatin1Char('('));
|
||||
const int closing = beforeComment.count(QLatin1Char(')'));
|
||||
if (opening == closing)
|
||||
|
||||
@@ -84,7 +84,7 @@ void CMakeTargetLocatorFilter::prepareSearch(const QString &entry)
|
||||
|
||||
Core::LocatorFilterEntry filterEntry(this, target.title, extraData);
|
||||
filterEntry.extraInfo = path.shortNativePath();
|
||||
filterEntry.highlightInfo = {index, entry.length()};
|
||||
filterEntry.highlightInfo = {index, int(entry.length())};
|
||||
filterEntry.fileName = path.toString();
|
||||
|
||||
m_result.append(filterEntry);
|
||||
|
||||
Reference in New Issue
Block a user