]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
Refactor useless format string
authortobtoht <thotbot@protonmail.com>
Thu, 10 Feb 2022 10:37:53 +0000 (11:37 +0100)
committertobtoht <thotbot@protonmail.com>
Thu, 10 Feb 2022 10:37:53 +0000 (11:37 +0100)
src/utils/Utils.cpp

index 5c21c7e773bdefb8e7fb0752cbced33aa1264698..96e525c1660463954bc64d24f978c1ef1d8225d3 100644 (file)
@@ -401,13 +401,11 @@ void externalLinkWarning(QWidget *parent, const QString &url){
         return;
     }
 
-    QString body = "You are about to open the following link:\n\n";
-    body += QString("%1").arg(url);
+    QString body = QString("You are about to open the following link:\n\n%1").arg(url);
 
     if (!(TailsOS::detect() || WhonixOS::detect()))
         body += "\n\nYou will NOT be using Tor.";
 
-
     QMessageBox linkWarning(parent);
     linkWarning.setWindowTitle("External link warning");
     linkWarning.setText(body);