From 47b2913357cf5bad2b49894b0e0497f4daccb40d Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Fri, 7 Dec 2018 10:06:56 +0100 Subject: [PATCH] Fix compilation warning 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/propagatorjobs.cpp b/src/libsync/propagatorjobs.cpp index f540446cc..b3548863b 100644 --- a/src/libsync/propagatorjobs.cpp +++ b/src/libsync/propagatorjobs.cpp @@ -62,7 +62,7 @@ bool PropagateLocalRemove::removeRecursively(const QString &path) QList> 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)); }, -- 2.30.2