Commit e99d511f authored by Volker Krause's avatar Volker Krause
Browse files

Fix level parser unit test with Qt6

QByteArray::operator[] changed its return value, capturing a reference
needs to be done differently now.
parent e02405e8
Pipeline #182584 passed with stage
in 2 minutes and 36 seconds
......@@ -25,7 +25,11 @@ void LevelParser::parse(QByteArray &&level, OSM::Element e, const std::function<
int numStartIdx = -1;
for (int i = 0; i < level.size(); ++i) {
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
auto c = level[i];
#else
auto &c = level[i];
#endif
if (c == ',') { // fix decimal separator errors
qCDebug(Log) << "syntax error in level tag:" << level << e.url();
......
Supports Markdown
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