Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 84f6e516 authored by Laurent Montel's avatar Laurent Montel 😁

it compiles fine without foreach

parent fda1bb4a
......@@ -52,6 +52,7 @@ configure_package_config_file(
add_definitions(-DTRANSLATION_DOMAIN=\"libksmtp5\")
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
add_definitions(-DQT_NO_FOREACH)
......
......@@ -162,7 +162,7 @@ bool FakeServer::isAllScenarioDone() const
{
QMutexLocker locker(&m_mutex);
foreach (const QList<QByteArray> &scenario, m_scenarios) {
for (const QList<QByteArray> &scenario : qAsConst(m_scenarios)) {
if (!scenario.isEmpty()) {
qDebug() << scenario;
return false;
......
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