mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-30 22:29:13 +08:00
Minimal string concat improvements
This commit is contained in:
committed by
Mat Sutcliffe
parent
b1d1880d43
commit
f3bfaa3179
@@ -78,22 +78,22 @@ namespace BlackMisc
|
|||||||
aircraftIcaos.sort();
|
aircraftIcaos.sort();
|
||||||
|
|
||||||
// header
|
// header
|
||||||
html += "<thead><tr>\n";
|
html += "<thead><tr>\n"
|
||||||
html += "<th></th>";
|
"<th></th>";
|
||||||
for (const QString &airline : as_const(airlineIcaos))
|
for (const QString &airline : as_const(airlineIcaos))
|
||||||
{
|
{
|
||||||
html += "<th>";
|
html += "<th>";
|
||||||
html += airline;
|
html += airline;
|
||||||
html += "</th>";
|
html += "</th>";
|
||||||
}
|
}
|
||||||
html += "\n</tr></thead>\n";
|
html += "\n</tr></thead>\n"
|
||||||
|
"<tbody>\n";
|
||||||
|
|
||||||
// fill data
|
// fill data
|
||||||
html += "<tbody>\n";
|
|
||||||
for (const QString &aircraftIcao : as_const(aircraftIcaos))
|
for (const QString &aircraftIcao : as_const(aircraftIcaos))
|
||||||
{
|
{
|
||||||
html += "<tr>\n";
|
html += "<tr>\n"
|
||||||
html += " <th>";
|
" <th>";
|
||||||
html += aircraftIcao;
|
html += aircraftIcao;
|
||||||
html += "</th>\n";
|
html += "</th>\n";
|
||||||
|
|
||||||
@@ -108,8 +108,8 @@ namespace BlackMisc
|
|||||||
html += QString::number(models.size());
|
html += QString::number(models.size());
|
||||||
html += "</a><div class=\"mouseoverdisplay\">";
|
html += "</a><div class=\"mouseoverdisplay\">";
|
||||||
html += models.asHtmlSummary();
|
html += models.asHtmlSummary();
|
||||||
html += "</div>";
|
html += "</div>"
|
||||||
html += "</td>\n";
|
"</td>\n";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -118,8 +118,8 @@ namespace BlackMisc
|
|||||||
}
|
}
|
||||||
html += "</tr>\n";
|
html += "</tr>\n";
|
||||||
}
|
}
|
||||||
html += "</tbody>\n";
|
html += "</tbody>\n"
|
||||||
html += "</table>\n";
|
"</table>\n";
|
||||||
return html;
|
return html;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user