remove deprecated API
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Mon, 16 Dec 2024 13:02:38 +0000 (14:02 +0100)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Mon, 16 Dec 2024 15:19:15 +0000 (16:19 +0100)
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/libsync/vfs/cfapi/cfapiwrapper.cpp

index 99100dde584baef408d8f03df18d61bff92b3a42..5828cd3a048d2237c1a0f0c24b654d7402f8b4f6 100644 (file)
@@ -593,7 +593,7 @@ bool createSyncRootRegistryKeys(const QString &providerName, const QString &fold
         { providerSyncRootIdRegistryKey, QStringLiteral("NamespaceCLSID"), REG_SZ, QString(navigationPaneClsid)}
     };
 
-    for (const auto &registryKeyToSet : qAsConst(registryKeysToSet)) {
+    for (const auto &registryKeyToSet : std::as_const(registryKeysToSet)) {
         if (!OCC::Utility::registrySetKeyValue(HKEY_LOCAL_MACHINE, registryKeyToSet.subKey, registryKeyToSet.valueName, registryKeyToSet.type, registryKeyToSet.value)) {
             qCWarning(lcCfApiWrapper) << "Failed to set Registry keys for shell integration. Progress bar will not work.";
             const auto deleteKeyResult = OCC::Utility::registryDeleteKeyTree(HKEY_LOCAL_MACHINE, providerSyncRootIdRegistryKey);