Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
libkscreen
Commits
c6eaf30f
Commit
c6eaf30f
authored
Oct 23, 2020
by
Aleix Pol Gonzalez
🐧
Committed by
Aleix Pol Gonzalez
Oct 29, 2020
Browse files
edid: Do not split strings twice unnecessarily
parent
fd19aa37
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/edid.cpp
View file @
c6eaf30f
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment