Clang: Use multi-arg for strings

Change-Id: Ia0cd1abdb59cd35f1ff276811386a57bcfeefa5f
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Jarek Kobus
2023-01-10 23:47:52 +01:00
parent 398b5656b4
commit 14a70e1514
2 changed files with 3 additions and 5 deletions

View File

@@ -132,8 +132,8 @@ public:
if (!source.isEmpty()) { if (!source.isEmpty()) {
text.append(QString::fromUtf8("<tr><td colspan='2' align='left'>" text.append(QString::fromUtf8("<tr><td colspan='2' align='left'>"
"<font color='gray'>%1</font></td></tr>") "<font color='gray'>%1</font></td></tr>")
.arg(QCoreApplication::translate("ClangDiagnosticWidget", "[Source: %1]")) .arg(QCoreApplication::translate("ClangDiagnosticWidget",
.arg(source)); "[Source: %1]").arg(source)));
} }
text.append("</table>"); text.append("</table>");

View File

@@ -214,9 +214,7 @@ void ClangToolRunWorker::start()
const Utils::FilePath projectFile = m_projectInfo->projectFilePath(); const Utils::FilePath projectFile = m_projectInfo->projectFilePath();
appendMessage(tr("Running %1 on %2 with configuration \"%3\".") appendMessage(tr("Running %1 on %2 with configuration \"%3\".")
.arg(toolName) .arg(toolName, projectFile.toUserOutput(), m_diagnosticConfig.displayName()),
.arg(projectFile.toUserOutput())
.arg(m_diagnosticConfig.displayName()),
Utils::NormalMessageFormat); Utils::NormalMessageFormat);
// Collect files // Collect files