Optional: Use nullopt and implicit construction in /modules/rtp_rtcp
Changes places where we explicitly construct an Optional to instead use nullopt or the requisite value type only. This CL was uploaded by git cl split. R=danilchap@webrtc.org Bug: None Change-Id: Ib4694d183f04d675f2ea66d39661fdffb2a984f1 Reviewed-on: https://webrtc-review.googlesource.com/23604 Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Commit-Queue: Oskar Sundbom <ossu@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20846}
This commit is contained in:
committed by
Commit Bot
parent
057ce1de45
commit
3419cf909e
@ -280,9 +280,9 @@ void RTPSenderVideo::SetFecParameters(const FecProtectionParams& delta_params,
|
||||
|
||||
rtc::Optional<uint32_t> RTPSenderVideo::FlexfecSsrc() const {
|
||||
if (flexfec_sender_) {
|
||||
return rtc::Optional<uint32_t>(flexfec_sender_->ssrc());
|
||||
return flexfec_sender_->ssrc();
|
||||
}
|
||||
return rtc::Optional<uint32_t>();
|
||||
return rtc::nullopt;
|
||||
}
|
||||
|
||||
bool RTPSenderVideo::SendVideo(RtpVideoCodecTypes video_type,
|
||||
|
||||
Reference in New Issue
Block a user