diff options
author | Dominik Holland <dominik.holland@qt.io> | 2020-11-16 16:29:06 +0100 |
---|---|---|
committer | Dominik Holland <dominik.holland@qt.io> | 2020-12-02 10:46:54 +0100 |
commit | e1e92987e999bc8fd463f05d6945c2ae25ffc026 (patch) | |
tree | 8744069e23b58472b2ab94b07ebe25ed4a2ee595 /src/ivicore/qivisimulationengine.cpp | |
parent | 21b7efb998d875e52a36a7282af6b06f9eed942d (diff) |
Qt6 port without cmake support
All deprecation warnings fixed and all autotest pass.
Change-Id: I05d48e9ddd2bf23b900065726d67710eea0e82d0
Reviewed-by: Robert Griebl <robert.griebl@qt.io>
Diffstat (limited to 'src/ivicore/qivisimulationengine.cpp')
-rw-r--r-- | src/ivicore/qivisimulationengine.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ivicore/qivisimulationengine.cpp b/src/ivicore/qivisimulationengine.cpp index 52cfb04..860c305 100644 --- a/src/ivicore/qivisimulationengine.cpp +++ b/src/ivicore/qivisimulationengine.cpp @@ -84,7 +84,7 @@ namespace qtivi_helper { void parseEnv(const QByteArray &rulesSrc, QHash<QString, QString> &hash) { const QString content = QString::fromLocal8Bit(rulesSrc); - const auto lines = content.splitRef(QLatin1Char(';')); + const auto lines = content.split(QLatin1Char(';')); for (auto line : lines) { // Remove whitespace at start and end of line: line = line.trimmed(); @@ -99,8 +99,8 @@ namespace qtivi_helper { if (fixedStr.startsWith(qrcUrlLiteral)) fixedStr = fixedStr.mid(3); - if (QFile::exists(fixedStr.toString())) - hash.insert(key.toString(), valueStr.toString()); + if (QFile::exists(fixedStr)) + hash.insert(key, valueStr); else qCWarning(qLcIviSimulationEngine, "Ignoring malformed override: File does not exist: '%s'", fixedStr.toUtf8().constData()); } else { |