Skip to content

Commit

Permalink
cppchecklibrarydata.cpp: removed usage of foreach Qt macro (#6729)
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave authored Aug 28, 2024
1 parent 6191411 commit cf02d06
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 cf02d06

Please sign in to comment.