Utils: Remove FilePath::operator+()

This was a alias for .stringAppended(), but can be used too easily
when .pathAppended() is meant.

Change-Id: Ia3b64d39828d4074b43d87c923ce3a6a87038948
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
hjk
2022-11-29 15:15:12 +01:00
parent b183efc94a
commit 4417c48e7b
28 changed files with 58 additions and 48 deletions

View File

@@ -396,9 +396,9 @@ void GeneralSettingsPage::exportBookmarks()
QLatin1String suffix(".xbel");
if (!filePath.endsWith(suffix))
filePath = filePath + suffix;
filePath = filePath.stringAppended(suffix);
Utils::FileSaver saver(filePath);
FileSaver saver(filePath);
if (!saver.hasError()) {
XbelWriter writer(LocalHelpManager::bookmarkManager().treeBookmarkModel());
writer.writeToFile(saver.file());