Skip to content

Commit 4b8b5e1

Browse files
committedJun 1, 2018
Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
This was done automatically replacing: s/mozilla::Move/std::move/ s/ Move(/ std::move(/ s/(Move(/(std::move(/ Removing the 'using mozilla::Move;' lines. And then with a few manual fixups, see the bug for the split series.. MozReview-Commit-ID: Jxze3adipUh
1 parent 97b78e0 commit 4b8b5e1

File tree

1,055 files changed

+3758
-3810
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,055 files changed

+3758
-3810
lines changed
 

‎accessible/base/EventTree.cpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ EventTree::Process(const RefPtr<DocAccessible>& aDeathGrip)
178178
return;
179179
}
180180
}
181-
mFirst = Move(mFirst->mNext);
181+
mFirst = std::move(mFirst->mNext);
182182
}
183183

184184
MOZ_ASSERT(mContainer || mDependentEvents.IsEmpty(),
@@ -329,9 +329,9 @@ EventTree::FindOrInsert(Accessible* aContainer)
329329
node->mFireReorder = false;
330330
UniquePtr<EventTree>& nodeOwnerRef = prevNode ? prevNode->mNext : mFirst;
331331
UniquePtr<EventTree> newNode(new EventTree(aContainer, mDependentEvents.IsEmpty()));
332-
newNode->mFirst = Move(nodeOwnerRef);
333-
nodeOwnerRef = Move(newNode);
334-
nodeOwnerRef->mNext = Move(node->mNext);
332+
newNode->mFirst = std::move(nodeOwnerRef);
333+
nodeOwnerRef = std::move(newNode);
334+
nodeOwnerRef->mNext = std::move(node->mNext);
335335

336336
// Check if a next node is contained by the given node too, and move them
337337
// under the given node if so.
@@ -350,10 +350,10 @@ EventTree::FindOrInsert(Accessible* aContainer)
350350
MOZ_ASSERT(!insNode->mNext);
351351

352352
node->mFireReorder = false;
353-
insNode->mNext = Move(*nodeRef);
353+
insNode->mNext = std::move(*nodeRef);
354354
insNode = insNode->mNext.get();
355355

356-
prevNode->mNext = Move(node->mNext);
356+
prevNode->mNext = std::move(node->mNext);
357357
node = prevNode;
358358
break;
359359
}
@@ -508,7 +508,7 @@ EventTree::Mutated(AccMutationEvent* aEv)
508508
AccShowEvent* childShowEv = downcast_accEvent(childEv);
509509
if (childShowEv->mPrecedingEvents.Length() > 0) {
510510
Controller(mContainer)->StorePrecedingEvents(
511-
mozilla::Move(childShowEv->mPrecedingEvents));
511+
std::move(childShowEv->mPrecedingEvents));
512512
}
513513
}
514514
}
@@ -540,7 +540,7 @@ EventTree::Mutated(AccMutationEvent* aEv)
540540
}
541541
}
542542

543-
*node = Move((*node)->mNext);
543+
*node = std::move((*node)->mNext);
544544
break;
545545
}
546546
cntr = cntr->Parent();

‎accessible/base/NotificationController.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ NotificationController::WillRefresh(mozilla::TimeStamp aTime)
792792
Accessible* outerDocAcc = mDocument->GetAccessible(ownerContent);
793793
if (outerDocAcc && outerDocAcc->AppendChild(childDoc)) {
794794
if (mDocument->AppendChildDocument(childDoc)) {
795-
newChildDocs.AppendElement(Move(mHangingChildDocuments[idx]));
795+
newChildDocs.AppendElement(std::move(mHangingChildDocuments[idx]));
796796
continue;
797797
}
798798

@@ -864,7 +864,7 @@ NotificationController::WillRefresh(mozilla::TimeStamp aTime)
864864
mEventGeneration = 0;
865865

866866
// Now that we are done with them get rid of the events we fired.
867-
RefPtr<AccTreeMutationEvent> mutEvent = Move(mFirstMutationEvent);
867+
RefPtr<AccTreeMutationEvent> mutEvent = std::move(mFirstMutationEvent);
868868
mLastMutationEvent = nullptr;
869869
mFirstMutationEvent = nullptr;
870870
while (mutEvent) {

0 commit comments

Comments
 (0)
Failed to load comments.