Use as_const on the rest of the source files

This commit is contained in:
Spiros
2024-07-13 18:31:16 +03:00
parent 81ba1e5754
commit 6a74b8b803
2 changed files with 3 additions and 3 deletions

View File

@@ -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;