Skip to content

Commit

Permalink
cppchecklibrarydata.cpp: removed usage of foreach Qt macro
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Aug 28, 2024
1 parent 198a66e commit d3a10e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui/cppchecklibrarydata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d3a10e2

Please sign in to comment.