Skip to content

Commit

Permalink
Bug 1675090: Use rvalue ref in SandboxTarget::RegisterSandboxStartCal…
Browse files Browse the repository at this point in the history
…lback; r=bobowen

Differential Revision: https://phabricator.services.mozilla.com/D95776
  • Loading branch information
dblohm7 committed Nov 3, 2020
1 parent 116877f commit a2f9ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/sandbox/win/src/sandboxtarget/sandboxTarget.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class SandboxTarget {
}

template <typename CallbackT>
void RegisterSandboxStartCallback(CallbackT aCallback) {
void RegisterSandboxStartCallback(CallbackT&& aCallback) {
mStartObservers.push_back(std::forward<CallbackT>(aCallback));
}

Expand Down

0 comments on commit a2f9ffc

Please sign in to comment.