mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-03-13 16:20:54 +03:00
Use as_const on the rest of the source files
This commit is contained in:
@@ -9,7 +9,7 @@ QVector<QPair<QString, int>> JsonParser::parse(const QString &json)
|
||||
bool found = false;
|
||||
bool skip = false;
|
||||
|
||||
for (const QString &line : lines) {
|
||||
for (const QString &line : std::as_const(lines)) {
|
||||
QString trimmedLine = line.trimmed();
|
||||
if (trimmedLine.contains("[")) {
|
||||
skip = true;
|
||||
|
||||
Reference in New Issue
Block a user