Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2022-05-20 17:41:18 +0300
committerHannah von Reth <vonreth@kde.org>2022-05-20 17:47:04 +0300
commitc8bb15ba929df39283dac25fd424e7daa9dc4b9d (patch)
tree2303273441138a83b153edd4b8d48bb46153f910 /src/gui/libcloudproviders
parent91584f86620b6441b5c23fe4d09fd5145e3612df (diff)
Siplify replacement
Diffstat (limited to 'src/gui/libcloudproviders')
-rw-r--r--src/gui/libcloudproviders/libcloudproviders.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gui/libcloudproviders/libcloudproviders.cpp b/src/gui/libcloudproviders/libcloudproviders.cpp
index af5ea016c..960358cb3 100644
--- a/src/gui/libcloudproviders/libcloudproviders.cpp
+++ b/src/gui/libcloudproviders/libcloudproviders.cpp
@@ -127,12 +127,7 @@ void LibCloudProvidersPrivate::exportFolder(Folder *folder)
}
// DBus object paths must not contain characters other than [A-Z][a-z][0-9]_, see g_variant_is_object_path
- const QByteArray dBusCompatibleFolderId = [folder]() {
- // replace works inplace
- auto rv = folder->id();
- rv.replace("-", "");
- return rv;
- }();
+ const QByteArray dBusCompatibleFolderId = folder->id().replace('-', nullptr);
auto exporter = cloud_providers_account_exporter_new(_exporter, dBusCompatibleFolderId.constData());
cloud_providers_account_exporter_set_path(exporter, folder->path().toUtf8().constData());