Fix build issues with Qt6

Change from QStringRef to QStringView at various places.

Task-number: QTCREATORBUG-24098
Change-Id: Ia7a634fa26464fbb2962724d5f0e188cecc68801
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Eike Ziller
2020-09-18 13:18:30 +02:00
parent 2a70bc1d09
commit 6225d33c28
15 changed files with 46 additions and 41 deletions

View File

@@ -5551,7 +5551,7 @@ bool FakeVimHandler::Private::handleExSubstituteCommand(const ExCommand &cmd)
if (cmd.cmd.isEmpty()) {
// keep previous substitution flags on '&&' and '~&'
if (line.size() > 1 && line[1] == '&')
g.lastSubstituteFlags += line.midRef(2);
g.lastSubstituteFlags += line.mid(2);
else
g.lastSubstituteFlags = line.mid(1);
if (line[0] == '~')