From 63e232a2cf2919738a47c47fb48b2fc527304c1c Mon Sep 17 00:00:00 2001 From: Oskar Sundbom Date: Thu, 16 Nov 2017 10:57:03 +0100 Subject: [PATCH] Optional: Use nullopt and implicit construction in /pc/peerconnectionendtoend_unittest.cc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Henrik Boström Cr-Commit-Position: refs/heads/master@{#20834} --- pc/peerconnectionendtoend_unittest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pc/peerconnectionendtoend_unittest.cc b/pc/peerconnectionendtoend_unittest.cc index 8b16610419..17f48bf326 100644 --- a/pc/peerconnectionendtoend_unittest.cc +++ b/pc/peerconnectionendtoend_unittest.cc @@ -277,7 +277,7 @@ struct AudioEncoderUnicornSparklesRainbow { format.name = "L16"; return webrtc::AudioEncoderL16::SdpToConfig(format); } else { - return rtc::Optional(); + return rtc::nullopt; } } static void AppendSupportedEncoders( @@ -312,7 +312,7 @@ struct AudioDecoderUnicornSparklesRainbow { format.name = "L16"; return webrtc::AudioDecoderL16::SdpToConfig(format); } else { - return rtc::Optional(); + return rtc::nullopt; } } static void AppendSupportedDecoders(