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) {
         ^~~~~
This commit is contained in:
Olivier Goffart 2018-12-07 10:06:56 +01:00 committed by Kevin Ottens
parent d87c2b803d
commit 47b2913357
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View 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));
},