From 497774d623fe1298e1d791afbfeee48a58c28047 Mon Sep 17 00:00:00 2001 From: Joseph Donofry Date: Sun, 28 Jul 2019 20:50:18 -0400 Subject: [PATCH] Fix linting --- src/Utils.h | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/src/Utils.h b/src/Utils.h index 40906b6a..225754be 100644 --- a/src/Utils.h +++ b/src/Utils.h @@ -95,29 +95,36 @@ messageDescription(const QString &username = "", using Encrypted = mtx::events::EncryptedEvent; // Sometimes the verb form of sent changes in some languages depending on the actor. - auto remoteSent = - QCoreApplication::translate("message-description: ", "sent", "For when you are the sender"); - auto localSent = - QCoreApplication::translate("message-description:", "sent", "For when someone else is the sender"); + auto remoteSent = QCoreApplication::translate( + "message-description: ", "sent", "For when you are the sender"); + auto localSent = QCoreApplication::translate( + "message-description:", "sent", "For when someone else is the sender"); QString sentVerb = isLocal ? localSent : remoteSent; if (std::is_same::value || std::is_same::value) { - return QCoreApplication::translate("message-description sent:", "%1 an audio clip").arg(sentVerb); + return QCoreApplication::translate("message-description sent:", "%1 an audio clip") + .arg(sentVerb); } else if (std::is_same::value || std::is_same::value) { - return QCoreApplication::translate("message-description sent:", "%1 an image").arg(sentVerb); + return QCoreApplication::translate("message-description sent:", "%1 an image") + .arg(sentVerb); } else if (std::is_same::value || std::is_same::value) { - return QCoreApplication::translate("message-description sent:", "%1 a file").arg(sentVerb); + return QCoreApplication::translate("message-description sent:", "%1 a file") + .arg(sentVerb); } else if (std::is_same::value || std::is_same::value) { - return QCoreApplication::translate("message-description sent:", "%1 a video clip").arg(sentVerb); + return QCoreApplication::translate("message-description sent:", "%1 a video clip") + .arg(sentVerb); } else if (std::is_same::value || std::is_same::value) { - return QCoreApplication::translate("message-description sent:", "%1 a sticker").arg(sentVerb); + return QCoreApplication::translate("message-description sent:", "%1 a sticker") + .arg(sentVerb); } else if (std::is_same::value) { - return QCoreApplication::translate("message-description sent:", "%1 a notification").arg(sentVerb); + return QCoreApplication::translate("message-description sent:", "%1 a notification") + .arg(sentVerb); } else if (std::is_same::value) { return QString(": %1").arg(body); } else if (std::is_same::value) { return QString("* %1 %2").arg(username).arg(body); } else if (std::is_same::value) { - return QCoreApplication::translate("message-description sent:", "%1 an encrypted message") + return QCoreApplication::translate("message-description sent:", + "%1 an encrypted message") .arg(sentVerb); } else { return QCoreApplication::translate("utils", "Unknown Message Type");