Fix clang-tidy errors.
authorallexzander <blackslayer4@gmail.com>
Thu, 29 Jul 2021 08:55:30 +0000 (11:55 +0300)
committerallexzander (Rebase PR Action) <allexzander@users.noreply.github.com>
Fri, 30 Jul 2021 06:21:05 +0000 (06:21 +0000)
Signed-off-by: allexzander <blackslayer4@gmail.com>
src/common/filesystembase.cpp
src/gui/wizard/owncloudadvancedsetuppage.cpp

index 8dda0a9d4b14ac190aff71f16b739023e64f3644..57e67ffcd1f81ea93619310b4af6e41e2b963580 100644 (file)
@@ -395,13 +395,13 @@ bool FileSystem::moveToTrash(const QString &fileName, QString *errorString)
             suffix_number++;
         }
         if (!file.rename(f.absoluteFilePath(), path + QString::number(suffix_number))) { // rename(file old path, file trash path)
-            *errorString = QCoreApplication::translate("FileSystem", "Could not move \"%1\" to \"%1\"")
+            *errorString = QCoreApplication::translate("FileSystem", R"(Could not move "%1" to "%1")")
                                .arg(f.absoluteFilePath(), path + QString::number(suffix_number));
             return false;
         }
     } else {
         if (!file.rename(f.absoluteFilePath(), trashFilePath + f.fileName())) { // rename(file old path, file trash path)
-            *errorString = QCoreApplication::translate("FileSystem", "Could not move \"%1\" to \"%1\"")
+            *errorString = QCoreApplication::translate("FileSystem", R"(Could not move "%1" to "%1")")
                                .arg(f.absoluteFilePath(), trashFilePath + f.fileName());
             return false;
         }
index d3d7d9a5abab45fa0856aa5a16ae75fb91f8d284..51ea0eb9ce335a5fa8d53018b0c4da705b2abfc0 100644 (file)
@@ -267,7 +267,7 @@ void OwncloudAdvancedSetupPage::updateStatus()
         if (_remoteFolder.isEmpty() || _remoteFolder == QLatin1String("/")) {
             t = "";
         } else {
-            t = Utility::escape(tr("%1 folder \"%2\" is synced to local folder \"%3\"")
+            t = Utility::escape(tr(R"(%1 folder "%2" is synced to local folder "%3")")
                                     .arg(Theme::instance()->appName(), _remoteFolder,
                                         QDir::toNativeSeparators(locFolder)));
             _ui.rSyncEverything->setText(tr("Sync the folder \"%1\"").arg(_remoteFolder));