aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmldom/qqmldomcodeformatter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmldom/qqmldomcodeformatter.cpp')
-rw-r--r--src/qmldom/qqmldomcodeformatter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qmldom/qqmldomcodeformatter.cpp b/src/qmldom/qqmldomcodeformatter.cpp
index 5660025fd8..dbe8e3a648 100644
--- a/src/qmldom/qqmldomcodeformatter.cpp
+++ b/src/qmldom/qqmldomcodeformatter.cpp
@@ -1,6 +1,8 @@
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
+#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
+
#include "qqmldomcodeformatter_p.h"
#include <QLoggingCategory>