Optional: Use nullopt and implicit construction in /modules/video_coding
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. Bug: None Change-Id: Iedebf4dc56a973306e7d7e7649525879808dc72b Reviewed-on: https://webrtc-review.googlesource.com/23578 Commit-Queue: Oskar Sundbom <ossu@webrtc.org> Reviewed-by: Åsa Persson <asapersson@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20878}
This commit is contained in:
committed by
Commit Bot
parent
56d460902e
commit
6bd39025ec
@ -167,8 +167,8 @@ rtc::Optional<RTPVideoTypeHeader> RtpFrameObject::GetCodecHeader() const {
|
||||
rtc::CritScope lock(&packet_buffer_->crit_);
|
||||
VCMPacket* packet = packet_buffer_->GetPacket(first_seq_num_);
|
||||
if (!packet)
|
||||
return rtc::Optional<RTPVideoTypeHeader>();
|
||||
return rtc::Optional<RTPVideoTypeHeader>(packet->video_header.codecHeader);
|
||||
return rtc::nullopt;
|
||||
return packet->video_header.codecHeader;
|
||||
}
|
||||
|
||||
} // namespace video_coding
|
||||
|
||||
Reference in New Issue
Block a user