From cf02d06430f0f22e21f19c4bfca74f3bed2b98c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Wed, 28 Aug 2024 18:05:35 +0200 Subject: [PATCH] cppchecklibrarydata.cpp: removed usage of `foreach` Qt macro (#6729) --- gui/cppchecklibrarydata.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/cppchecklibrarydata.cpp b/gui/cppchecklibrarydata.cpp index 682e544137c..9bab4610835 100644 --- a/gui/cppchecklibrarydata.cpp +++ b/gui/cppchecklibrarydata.cpp @@ -697,14 +697,14 @@ static void writeFunction(QXmlStreamWriter &xmlWriter, const CppcheckLibraryData } if (!function.notOverlappingDataArgs.isEmpty()) { xmlWriter.writeStartElement("not-overlapping-data"); - foreach (const QString& value, function.notOverlappingDataArgs) { + for (const QString& value : function.notOverlappingDataArgs) { xmlWriter.writeAttribute(function.notOverlappingDataArgs.key(value), value); } xmlWriter.writeEndElement(); } if (!function.containerAttributes.isEmpty()) { xmlWriter.writeStartElement("container"); - foreach (const QString& value, function.containerAttributes) { + for (const QString& value : function.containerAttributes) { xmlWriter.writeAttribute(function.containerAttributes.key(value), value); } xmlWriter.writeEndElement();