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:
@@ -296,7 +296,7 @@ static QString filterPasswordFromUrls(const QString &input)
|
||||
while ((pos = d->passwordRegExp.indexIn(result, pos)) >= 0) {
|
||||
QString tmp = result.left(pos + 3) + d->passwordRegExp.cap(1) + QLatin1String(":***@");
|
||||
int newStart = tmp.count();
|
||||
tmp += result.mid(pos + d->passwordRegExp.matchedLength());
|
||||
tmp += result.midRef(pos + d->passwordRegExp.matchedLength());
|
||||
result = tmp;
|
||||
pos = newStart;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user