Remove pointless move() to fix build on clang/win.
Fixes: ..\..\third_party\libjingle\source\talk\app\webrtc\remoteaudiosource.cc(100,15) : error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move] ssrc, std::move(rtc::scoped_ptr<AudioSinkInterface>(new Sink(this)))); ^ ..\..\third_party\libjingle\source\talk\app\webrtc\remoteaudiosource.cc(100,15) : note: remove std::move call here ssrc, std::move(rtc::scoped_ptr<AudioSinkInterface>(new Sink(this)))); ^~~~~~~~~~ R=thakis@chromium.org TBR=thakis@chromium.org Review URL: https://codereview.webrtc.org/1517253004 . Cr-Commit-Position: refs/heads/master@{#10999}
This commit is contained in:
@ -97,7 +97,7 @@ void RemoteAudioSource::Initialize(uint32_t ssrc,
|
|||||||
// we register for callbacks here and not on demand in AddSink.
|
// we register for callbacks here and not on demand in AddSink.
|
||||||
if (provider) { // May be null in tests.
|
if (provider) { // May be null in tests.
|
||||||
provider->SetRawAudioSink(
|
provider->SetRawAudioSink(
|
||||||
ssrc, std::move(rtc::scoped_ptr<AudioSinkInterface>(new Sink(this))));
|
ssrc, rtc::scoped_ptr<AudioSinkInterface>(new Sink(this)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user