chore: message::fileLine use QStringLiteral, multi-arg

This commit is contained in:
sithlord48 2025-06-03 21:53:11 -04:00 committed by Nick Bolton
parent 1286c18e1d
commit e038dd2b0b

View file

@ -80,9 +80,9 @@ void showErrorDialog(const QString &message, const QString &fileLine, QtMsgType
QString fileLine(const QMessageLogContext &context) QString fileLine(const QMessageLogContext &context)
{ {
if (!context.file) { if (!context.file) {
return ""; return {};
} }
return QString("%1:%2").arg(context.file).arg(context.line); return QStringLiteral("%1:%2").arg(context.file, QString::number(context.line));
} }
void messageHandler(QtMsgType type, const QMessageLogContext &context, const QString &message) void messageHandler(QtMsgType type, const QMessageLogContext &context, const QString &message)