Commit baa0d463 authored by Laurent Montel's avatar Laurent Montel 😁

It compile fine without foreach

parent 17ee4af1
......@@ -35,6 +35,8 @@ if (${Qt5Core_VERSION} STRGREATER "5.13")
else()
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
endif()
add_definitions(-DQT_NO_FOREACH)
add_subdirectory(src)
add_subdirectory(autotests)
......
......@@ -173,7 +173,7 @@ QVector<Field> PassPrivate::fields(const QLatin1String &fieldType, const Pass *q
const auto a = passData().value(fieldType).toArray();
QVector<Field> f;
f.reserve(a.size());
foreach (const auto &v, a) {
for (const auto &v : a) {
f.push_back(Field{v.toObject(), q});
}
return f;
......
Markdown is supported
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