forked from qt-creator/qt-creator
Utils: Fix build with Qt6
Do not use QStringRef related API, replace with QStringView where appropriate. Adapt to removal of QAbstractItemView::viewOptions(). Task-number: QTCREATORBUG-24098 Change-Id: I5a7a9821984583222083733f91b46df39c21d592 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -352,7 +352,7 @@ static QStringList splitArgsUnix(const QString &args, bool abortOnMeta,
|
||||
goto quoteerr;
|
||||
c = args.unicode()[pos++];
|
||||
} while (c != QLatin1Char('\''));
|
||||
cret += args.midRef(spos, pos - spos - 1);
|
||||
cret += args.mid(spos, pos - spos - 1);
|
||||
hadWord = true;
|
||||
} else if (c == QLatin1Char('"')) {
|
||||
for (;;) {
|
||||
|
||||
Reference in New Issue
Block a user