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
This commit is contained in:
Emilio Cobos Álvarez
2018-05-30 21:15:35 +02:00
parent 97b78e0aeb
commit 4b8b5e1717
1055 changed files with 3758 additions and 3810 deletions

View File

@@ -2441,7 +2441,7 @@ XMLHttpRequestMainThread::InitiateFetch(already_AddRefed<nsIInputStream> aUpload
nsACString& aUploadContentType)
{
nsresult rv;
nsCOMPtr<nsIInputStream> uploadStream = Move(aUploadStream);
nsCOMPtr<nsIInputStream> uploadStream = std::move(aUploadStream);
// nsIRequest::LOAD_BACKGROUND prevents throbber from becoming active, which
// in turn keeps STOP button from becoming active. If the consumer passed in
@@ -3053,10 +3053,10 @@ XMLHttpRequestMainThread::DispatchToMainThread(already_AddRefed<nsIRunnable> aRu
nsCOMPtr<nsIEventTarget> target = global->EventTargetFor(TaskCategory::Other);
MOZ_ASSERT(target);
return target->Dispatch(Move(aRunnable), NS_DISPATCH_NORMAL);
return target->Dispatch(std::move(aRunnable), NS_DISPATCH_NORMAL);
}
return NS_DispatchToMainThread(Move(aRunnable));
return NS_DispatchToMainThread(std::move(aRunnable));
}
void