chore: message::fileLine use QStringLiteral, multi-arg
This commit is contained in:
parent
1286c18e1d
commit
e038dd2b0b
1 changed files with 2 additions and 2 deletions
|
|
@ -80,9 +80,9 @@ void showErrorDialog(const QString &message, const QString &fileLine, QtMsgType
|
|||
QString fileLine(const QMessageLogContext &context)
|
||||
{
|
||||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue