forked from mirrors/gecko-dev
Bug 1725572 - Part 1: Support move-only closures in ScopeExit, r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D125895
This commit is contained in:
parent
e339f4f212
commit
a67a90d1c3
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ class MOZ_STACK_CLASS ScopeExit {
|
|||
|
||||
public:
|
||||
explicit ScopeExit(ExitFunction&& cleanup)
|
||||
: mExitFunction(cleanup), mExecuteOnDestruction(true) {}
|
||||
: mExitFunction(std::move(cleanup)), mExecuteOnDestruction(true) {}
|
||||
|
||||
ScopeExit(ScopeExit&& rhs)
|
||||
: mExitFunction(std::move(rhs.mExitFunction)),
|
||||
|
|
|
|||
Loading…
Reference in a new issue