Optional: Use nullopt and implicit construction in /pc/peerconnectionendtoend_unittest.cc
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=hbos@webrtc.org Bug: None Change-Id: I2fc923e788b744fc167f02f9fecd19bea512af81 Reviewed-on: https://webrtc-review.googlesource.com/23613 Commit-Queue: Oskar Sundbom <ossu@webrtc.org> Reviewed-by: Henrik Boström <hbos@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20834}
This commit is contained in:
committed by
Commit Bot
parent
2ddf98d894
commit
63e232a2cf
@ -277,7 +277,7 @@ struct AudioEncoderUnicornSparklesRainbow {
|
||||
format.name = "L16";
|
||||
return webrtc::AudioEncoderL16::SdpToConfig(format);
|
||||
} else {
|
||||
return rtc::Optional<Config>();
|
||||
return rtc::nullopt;
|
||||
}
|
||||
}
|
||||
static void AppendSupportedEncoders(
|
||||
@ -312,7 +312,7 @@ struct AudioDecoderUnicornSparklesRainbow {
|
||||
format.name = "L16";
|
||||
return webrtc::AudioDecoderL16::SdpToConfig(format);
|
||||
} else {
|
||||
return rtc::Optional<Config>();
|
||||
return rtc::nullopt;
|
||||
}
|
||||
}
|
||||
static void AppendSupportedDecoders(
|
||||
|
||||
Reference in New Issue
Block a user