From a0f5d085b4a39ba444f118524243283903688ea5 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sat, 29 Apr 2023 16:04:16 +0200 Subject: [PATCH] Fix android build by explicitly specifying template parameter --- src/client/QXmppHttpFileSharingProvider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/QXmppHttpFileSharingProvider.cpp b/src/client/QXmppHttpFileSharingProvider.cpp index 5b7304c5a..7b1b5b783 100644 --- a/src/client/QXmppHttpFileSharingProvider.cpp +++ b/src/client/QXmppHttpFileSharingProvider.cpp @@ -160,7 +160,7 @@ auto QXmppHttpFileSharingProvider::uploadFile(std::unique_ptr data, // reduce ref count, so the signal connection doesn't keep the state alive forever state.reset(); }); - QObject::connect(state->upload.get(), &QXmppHttpUpload::progressChanged, [stateRef = std::weak_ptr(state), reportProgress = std::move(reportProgress)]() { + QObject::connect(state->upload.get(), &QXmppHttpUpload::progressChanged, [stateRef = std::weak_ptr(state), reportProgress = std::move(reportProgress)]() { if (auto state = stateRef.lock()) { reportProgress(state->upload->bytesSent(), state->upload->bytesTotal()); }