Fix compilation warning
authorOlivier Goffart <ogoffart@woboq.com>
Fri, 7 Dec 2018 09:06:56 +0000 (10:06 +0100)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:27 +0000 (10:58 +0100)
src/libsync/propagatorjobs.cpp:63:10: warning: lambda capture 'this' is not used [-Wunused-lambda-capture]
        [this, &deleted](const QString &path, bool isDir) {
         ^~~~~

src/libsync/propagatorjobs.cpp

index f540446cc1835d36060de6a48f374248f68c405b..b3548863b2f14123bd11f7cc0a2c02a6006c3cb6 100644 (file)
@@ -62,7 +62,7 @@ bool PropagateLocalRemove::removeRecursively(const QString &path)
     QList<QPair<QString, bool>> deleted;
     bool success = FileSystem::removeRecursively(
         absolute,
-        [this, &deleted](const QString &path, bool isDir) {
+        [&deleted](const QString &path, bool isDir) {
             // by prepending, a folder deletion may be followed by content deletions
             deleted.prepend(qMakePair(path, isDir));
         },