Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D84807
This commit is contained in:
@@ -256,8 +256,7 @@ void DOMIntersectionObserver::Disconnect() {
|
||||
|
||||
void DOMIntersectionObserver::TakeRecords(
|
||||
nsTArray<RefPtr<DOMIntersectionObserverEntry>>& aRetVal) {
|
||||
aRetVal.SwapElements(mQueuedEntries);
|
||||
mQueuedEntries.Clear();
|
||||
aRetVal = std::move(mQueuedEntries);
|
||||
}
|
||||
|
||||
static Maybe<nsRect> EdgeInclusiveIntersection(const nsRect& aRect,
|
||||
|
||||
Reference in New Issue
Block a user