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

@@ -1223,7 +1223,7 @@ public:
uint32_t aLength)
: Runnable("nsHtml5DataAvailable")
, mStreamParser(aStreamParser)
, mData(Move(aData))
, mData(std::move(aData))
, mLength(aLength)
{
}
@@ -1261,7 +1261,7 @@ nsHtml5StreamParser::OnDataAvailable(nsIRequest* aRequest,
NS_ASSERTION(totalRead <= aLength, "Read more bytes than were available?");
nsCOMPtr<nsIRunnable> dataAvailable =
new nsHtml5DataAvailable(this, Move(data), totalRead);
new nsHtml5DataAvailable(this, std::move(data), totalRead);
if (NS_FAILED(
mEventTarget->Dispatch(dataAvailable, nsIThread::DISPATCH_NORMAL))) {
NS_WARNING("Dispatching DataAvailable event failed.");
@@ -1827,8 +1827,8 @@ nsresult
nsHtml5StreamParser::DispatchToMain(already_AddRefed<nsIRunnable>&& aRunnable)
{
if (mDocGroup) {
return mDocGroup->Dispatch(TaskCategory::Network, Move(aRunnable));
return mDocGroup->Dispatch(TaskCategory::Network, std::move(aRunnable));
}
return SchedulerGroup::UnlabeledDispatch(TaskCategory::Network,
Move(aRunnable));
std::move(aRunnable));
}