Gui: modernize C++: use range-based for loop

This commit is contained in:
wmayer
2023-08-14 19:40:21 +02:00
committed by wwmayer
parent 4991475341
commit e09d8aaba6
42 changed files with 234 additions and 240 deletions

View File

@@ -733,9 +733,9 @@ void AboutDialog::showLibraryInformation()
QTextStream out(&html);
out << "<html><head/><body style=\" font-size:8.25pt; font-weight:400; font-style:normal;\">"
<< "<p>" << msg << "<br/></p>\n<ul>\n";
for (QList<LibraryInfo>::iterator it = libInfo.begin(); it != libInfo.end(); ++it) {
out << "<li><p>" << it->name << " " << it->version << "</p>"
"<p><a href=\"" << it->href << "\">" << it->url
for (const auto & it : libInfo) {
out << "<li><p>" << it.name << " " << it.version << "</p>"
"<p><a href=\"" << it.href << "\">" << it.url
<< "</a><br/></p></li>\n";
}
out << "</ul>\n</body>\n</html>";