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 500636 db19bf2d6479d2e7e399b5ff03eaee0019b3d05b
parent 500635 fe1c2bb6cfbc4d2da8c30094e15cdb7d92039d94
child 500637 edc4ae8f78e2fb02647d7cd85cb19830a17dcd1d
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspehrsons
bugs1498679
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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;