Bug 1611415 - Prefer using std::move over forget. r=froydnj

Differential Revision: https://phabricator.services.mozilla.com/D60980
This commit is contained in:
Simon Giesecke
2020-02-13 14:38:48 +00:00
parent 4394df52a7
commit 9bcfd47601
251 changed files with 512 additions and 500 deletions

View File

@@ -1727,7 +1727,7 @@ void Animation::DoFinishNotification(SyncNotifyFlag aSyncNotifyFlag) {
} else if (!mFinishNotificationTask) {
RefPtr<MicroTaskRunnable> runnable = new AsyncFinishNotification(this);
context->DispatchToMicroTask(do_AddRef(runnable));
mFinishNotificationTask = runnable.forget();
mFinishNotificationTask = std::move(runnable);
}
}