Fix warning: "Use midRef() instead of mid()"

[-Wclazy-qstring-ref]

Change-Id: If8a0844b39377feb3772542559655854a92b93cd
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2019-01-17 01:38:54 +01:00
parent 8acd583d10
commit 710e57a628
19 changed files with 38 additions and 38 deletions

View File

@@ -5503,7 +5503,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.mid(2);
g.lastSubstituteFlags += line.midRef(2);
else
g.lastSubstituteFlags = line.mid(1);
if (line[0] == '~')