Bug 1498679 - Stop moving variable to fix Linux64 debug coverage build. r=pehrsons

Differential Revision: https://phabricator.services.mozilla.com/D9244

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Alex Chronopoulos 2018-10-19 12:47:06 +00:00
Родитель 966d95816c
Коммит 13c885d7b1
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -8333,7 +8333,7 @@ HTMLMediaElement::SetSinkId(const nsAString& aSinkId, ErrorResult& aRv)
})
->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();