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

@@ -3050,7 +3050,7 @@ MediaResult HTMLMediaElement::LoadResource() {
RefPtr<ChannelLoader> loader = new ChannelLoader;
nsresult rv = loader->Load(this);
if (NS_SUCCEEDED(rv)) {
mChannelLoader = loader.forget();
mChannelLoader = std::move(loader);
}
return MediaResult(rv, "Failed to load channel");
}