Bug 1498679 - Stop moving variable to fix Linux64 debug coverage build. r=pehrsons
authorAlex Chronopoulos <achronop@gmail.com>
Fri, 19 Oct 2018 12:47:06 +0000
changeset 490492 db19bf2d6479d2e7e399b5ff03eaee0019b3d05b
parent 490491 fe1c2bb6cfbc4d2da8c30094e15cdb7d92039d94
child 490493 edc4ae8f78e2fb02647d7cd85cb19830a17dcd1d
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewerspehrsons
bugs1498679
milestone64.0a1
Bug 1498679 - Stop moving variable to fix Linux64 debug coverage build. r=pehrsons Differential Revision: https://phabricator.services.mozilla.com/D9244
dom/html/HTMLMediaElement.cpp
--- a/dom/html/HTMLMediaElement.cpp
+++ b/dom/html/HTMLMediaElement.cpp
@@ -8328,17 +8328,17 @@ HTMLMediaElement::SetSinkId(const nsAStr
              return SinkInfoPromise::CreateAndResolve(aInfo, __func__);
            },
            [](nsresult res){
              // Promise is rejected, sink not found.
              return SinkInfoPromise::CreateAndReject(res, __func__);
            })
     ->Then(mAbstractMainThread, __func__,
            [promise, self = RefPtr<HTMLMediaElement>(this),
-           sinkId = std::move(sinkId)] (const SinkInfoPromise::ResolveOrRejectValue& aValue) {
+           sinkId] (const SinkInfoPromise::ResolveOrRejectValue& aValue) {
              if (aValue.IsResolve()) {
                self->mSink = MakePair(sinkId, aValue.ResolveValue());
                promise->MaybeResolveWithUndefined();
              } else {
                switch (aValue.RejectValue()) {
                  case NS_ERROR_ABORT:
                    promise->MaybeReject(NS_ERROR_DOM_ABORT_ERR);
                    break;