ClangFormat: Spread FilePath

Change-Id: Iedddd78b183b2290f98411e7c70807c1828f1c25
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2021-08-17 18:16:43 +02:00
parent adf1243ed9
commit 21b1bfc73c
2 changed files with 10 additions and 11 deletions

View File

@@ -329,10 +329,8 @@ void BackingUpSettingsAccessor::backupFile(const FilePath &path, const QVariantM
return;
// Do we need to do a backup?
const QString origName = path.toString();
optional<FilePath> backupFileName = m_strategy->backupName(oldSettings.data, path, data);
if (backupFileName)
QFile::copy(origName, backupFileName.value().toString());
if (optional<FilePath> backupFileName = m_strategy->backupName(oldSettings.data, path, data))
path.copyFile(backupFileName.value());
}
// --------------------------------------------------------------------