Skip to content

Commit

Permalink
refactor(xml): Use QString::number to avoid multi-arg
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Nov 7, 2024
1 parent 713f9b3 commit 78d41e6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/util/xml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,11 @@ QDomElement XmlParse::openXMLFile(const QString& path, const QString& name) {
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
const auto parseResult = doc.setContent(&file);
if (!parseResult) {
QString errorString = QString("%1 at line %2, column %3")
.arg(parseResult.errorMessage)
.arg(parseResult.errorLine)
.arg(parseResult.errorColumn);
QString errorString =
QStringLiteral("%1 at line %2, column %3")
.arg(parseResult.errorMessage,
QString::number(parseResult.errorLine),
QString::number(parseResult.errorColumn));

#else
QString error;
Expand Down

0 comments on commit 78d41e6

Please sign in to comment.