Optional: Use nullopt and implicit construction in /sdk/objc
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=magjed@webrtc.org Bug: None Change-Id: I78842b6bb8ae345bcb852feee3908fdaf955c664 Reviewed-on: https://webrtc-review.googlesource.com/23574 Reviewed-by: Magnus Jedvert <magjed@webrtc.org> Commit-Queue: Oskar Sundbom <ossu@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20956}
This commit is contained in:
committed by
Commit Bot
parent
3808709afd
commit
d21bf131bd
@ -30,9 +30,7 @@ class ObjcVideoTrackSource : public rtc::AdaptedVideoTrackSource {
|
||||
// Indicates that the encoder should denoise video before encoding it.
|
||||
// If it is not set, the default configuration is used which is different
|
||||
// depending on video codec.
|
||||
rtc::Optional<bool> needs_denoising() const override {
|
||||
return rtc::Optional<bool>(false);
|
||||
}
|
||||
rtc::Optional<bool> needs_denoising() const override { return false; }
|
||||
|
||||
SourceState state() const override { return SourceState::kLive; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user