From fc75b9452422cfc8e41ef48163191d7eda4fc0f3 Mon Sep 17 00:00:00 2001 From: allexzander Date: Thu, 29 Jul 2021 11:55:30 +0300 Subject: [PATCH] Fix clang-tidy errors. Signed-off-by: allexzander --- src/common/filesystembase.cpp | 4 ++-- src/gui/wizard/owncloudadvancedsetuppage.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/filesystembase.cpp b/src/common/filesystembase.cpp index 8dda0a9d4..57e67ffcd 100644 --- a/src/common/filesystembase.cpp +++ b/src/common/filesystembase.cpp @@ -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; } diff --git a/src/gui/wizard/owncloudadvancedsetuppage.cpp b/src/gui/wizard/owncloudadvancedsetuppage.cpp index d3d7d9a5a..51ea0eb9c 100644 --- a/src/gui/wizard/owncloudadvancedsetuppage.cpp +++ b/src/gui/wizard/owncloudadvancedsetuppage.cpp @@ -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)); -- 2.30.2