Commit c6eaf30f authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez

edid: Do not split strings twice unnecessarily

parent fd19aa37
......@@ -275,9 +275,9 @@ bool Edid::Private::parse(const QByteArray &rawData)
while (!pnpIds.atEnd()) {
QString line = QString::fromUtf8(pnpIds.readLine());
if (line.startsWith(pnpId)) {
QStringList parts = line.split(QLatin1Char('\t'));
const QStringList parts = line.split(QLatin1Char('\t'));
if (parts.size() == 2) {
vendorName = line.split(QLatin1Char('\t')).at(1).simplified();
vendorName = parts.at(1).simplified();
}
break;
}
......
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