Use QLatin1String overload for QString/QStringRef::indexOf

GIT_SILENT
parent b187b7c1
......@@ -389,7 +389,7 @@ QString clearComments(const QString& str_, QChar replacement)
pos = dest;
} else if (withoutStrings[pos + 1] == QLatin1Char('*')) {
//CPP style comment
endCommentPos = withoutStrings.indexOf(QStringLiteral("*/"), pos + 2);
endCommentPos = withoutStrings.indexOf(QLatin1String("*/"), pos + 2);
if (endCommentPos != -1)
endCommentPos += 2;
......
......@@ -1222,7 +1222,7 @@ void GitPlugin::parseGitStatusOutput(DVcsJob* job)
QStringRef curr=line.mid(3);
QStringRef state = line.left(2);
int arrow = curr.indexOf(QStringLiteral(" -> "));
int arrow = curr.indexOf(QLatin1String(" -> "));
if(arrow>=0) {
VcsStatusInfo status;
status.setUrl(QUrl::fromLocalFile(dotGit.absoluteFilePath(curr.toString().left(arrow))));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment