Skip to content

Commit

Permalink
Bug 1847604: use std::move() for string arg to OnSessionClosed lambda…
Browse files Browse the repository at this point in the history
… r=necko-reviewers,valentin

Differential Revision: https://phabricator.services.mozilla.com/D185587
  • Loading branch information
jesup committed Aug 8, 2023
1 parent 0b63349 commit 1b9b5ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netwerk/protocol/webtransport/WebTransportSessionProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ WebTransportSessionProxy::OnSessionClosed(bool aCleanly, uint32_t aStatus,
if (!mStopRequestCalled) {
nsCString closeReason(aReason);
mPendingEvents.AppendElement([self = RefPtr{this}, status(aStatus),
closeReason(closeReason),
closeReason(std::move(closeReason)),
cleanly(aCleanly)]() {
Unused << self->OnSessionClosed(cleanly, status, closeReason);
});
Expand Down

0 comments on commit 1b9b5ca

Please sign in to comment.