From: Olivier Goffart Date: Fri, 7 Dec 2018 09:06:56 +0000 (+0100) Subject: Fix compilation warning X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~374 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=47b2913357cf5bad2b49894b0e0497f4daccb40d;p=nextcloud-desktop.git 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) { ^~~~~ --- 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)); },