Commit 02337d0b authored by Laurent Montel's avatar Laurent Montel 😁

Minor optimization

parent 2f245dd8
......@@ -216,10 +216,11 @@ void PkPassFile::parse()
static int indexOfUnquoted(const QString &catalog, QLatin1Char c, int start)
{
for (int i = start; i < catalog.size(); ++i) {
if (catalog.at(i) == c) {
const QChar catalogChar = catalog.at(i);
if (catalogChar == c) {
return i;
}
if (catalog.at(i) == QLatin1Char('\\')) {
if (catalogChar == QLatin1Char('\\')) {
++i;
}
}
......
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