mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-10-27 15:25:58 +00:00
Avoid multiple .arg usage as suggested by clazy
This commit is contained in:
@@ -395,13 +395,13 @@ NotificationData::NotificationData(
|
||||
if (capabilities.contains(qsl("body-markup"))) {
|
||||
_body = subtitle.isEmpty()
|
||||
? msg.toHtmlEscaped().toStdString()
|
||||
: qsl("<b>%1</b>\n%2")
|
||||
.arg(subtitle.toHtmlEscaped())
|
||||
.arg(msg.toHtmlEscaped()).toStdString();
|
||||
: qsl("<b>%1</b>\n%2").arg(
|
||||
subtitle.toHtmlEscaped(),
|
||||
msg.toHtmlEscaped()).toStdString();
|
||||
} else {
|
||||
_body = subtitle.isEmpty()
|
||||
? msg.toStdString()
|
||||
: qsl("%1\n%2").arg(subtitle).arg(msg).toStdString();
|
||||
: qsl("%1\n%2").arg(subtitle, msg).toStdString();
|
||||
}
|
||||
|
||||
if (capabilities.contains("actions")) {
|
||||
|
||||
Reference in New Issue
Block a user