forked from qt-creator/qt-creator
Fix warning: "Use midRef() instead of mid()"
[-Wclazy-qstring-ref] Change-Id: If8a0844b39377feb3772542559655854a92b93cd Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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] == '~')
|
||||
|
||||
Reference in New Issue
Block a user