diff --git a/src/Editor/CErrorLogDialog.cpp b/src/Editor/CErrorLogDialog.cpp index 8baaf539..aef4edb4 100644 --- a/src/Editor/CErrorLogDialog.cpp +++ b/src/Editor/CErrorLogDialog.cpp @@ -16,28 +16,29 @@ CErrorLogDialog::~CErrorLogDialog() = default; bool CErrorLogDialog::GatherErrors() { const TStringList& rkErrors = NLog::GetErrorLog(); - if (rkErrors.empty()) return false; + if (rkErrors.empty()) + return false; QString DialogString; - for (auto it = rkErrors.begin(); it != rkErrors.end(); it++) + for (const auto& rkError : rkErrors) { - QString Error = TO_QSTRING(*it); + QString Error = TO_QSTRING(rkError); QString LineColor; - if (Error.startsWith("ERROR: ")) - LineColor = "#ff0000"; - else if (Error.startsWith("Warning: ")) - LineColor = "#ff8000"; + if (Error.startsWith(QStringLiteral("ERROR: "))) + LineColor = QStringLiteral("#ff0000"); + else if (Error.startsWith(QStringLiteral("Warning: "))) + LineColor = QStringLiteral("#ff8000"); QString FullLine = Error; if (!LineColor.isEmpty()) { - FullLine.prepend(QString("").arg(LineColor)); - FullLine.append(""); + FullLine.prepend(QStringLiteral("").arg(LineColor)); + FullLine.append(QStringLiteral("")); } - FullLine.append("
"); + FullLine.append(QStringLiteral("
")); DialogString += FullLine; }