FIX compile-warnings

This commit is contained in:
plc-user
2026-08-22 13:34:29 +02:00
parent c536dcf30f
commit 56464629bf
3 changed files with 5 additions and 4 deletions
+4 -1
View File
@@ -436,7 +436,10 @@ void ProjectPrintWindow::printDiagram(Diagram *diagram, bool fit_page, QPainter
// Build info text
QStringList lines;
for (const QString &key : {"label", "manufacturer", "designation", "description"}) {
for (const auto &key : {QStringLiteral("label"),
QStringLiteral("manufacturer"),
QStringLiteral("designation"),
QStringLiteral("description")}) {
if (info.contains(key) && !info.value(key).toString().isEmpty())
lines << QETInformation::translatedInfoKey(key) + ": " + info.value(key).toString();
}