Skip to content

Commit

Permalink
Fix android build by explicitly specifying template parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
lnjX committed Apr 29, 2023
1 parent e759cf3 commit a0f5d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/QXmppHttpFileSharingProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ auto QXmppHttpFileSharingProvider::uploadFile(std::unique_ptr<QIODevice> 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>(state), reportProgress = std::move(reportProgress)]() {
if (auto state = stateRef.lock()) {
reportProgress(state->upload->bytesSent(), state->upload->bytesTotal());
}
Expand Down

0 comments on commit a0f5d08

Please sign in to comment.