tidy code by fixing one clazy reported warning
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Thu, 17 Nov 2022 13:48:51 +0000 (14:48 +0100)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Thu, 17 Nov 2022 13:48:51 +0000 (14:48 +0100)
use QString::arg with multiple parameters because that is faster

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/libsync/propagatorjobs.cpp

index 1013b802709ca71a728620f0a5b8818fbfc78a9d..fe1b62ee89d31d67bd23014ea92cc2da86f5163a 100644 (file)
@@ -244,8 +244,7 @@ void PropagateLocalRename::start()
             // it would have to come out the localFileNameClash function
             done(SyncFileItem::NormalError,
                 tr("File %1 cannot be renamed to %2 because of a local file name clash")
-                    .arg(QDir::toNativeSeparators(_item->_file))
-                    .arg(QDir::toNativeSeparators(_item->_renameTarget)));
+                    .arg(QDir::toNativeSeparators(_item->_file), QDir::toNativeSeparators(_item->_renameTarget)));
             return;
         }