From 10b96ebcad723a7335c2d4685ec110eb1a61ecde Mon Sep 17 00:00:00 2001 From: Oskar Sundbom Date: Thu, 11 Jan 2018 11:29:52 +0100 Subject: [PATCH] Optional: Use nullopt and implicit construction in /modules/pacing 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: Ic83404f3b10ef7a9725ae1f4cf55e1b295cc9c5d Reviewed-on: https://webrtc-review.googlesource.com/23570 Commit-Queue: Oskar Sundbom Reviewed-by: Karl Wiberg Cr-Commit-Position: refs/heads/master@{#21571} --- modules/pacing/alr_detector_unittest.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/pacing/alr_detector_unittest.cc b/modules/pacing/alr_detector_unittest.cc index 506add506b..37dd99a217 100644 --- a/modules/pacing/alr_detector_unittest.cc +++ b/modules/pacing/alr_detector_unittest.cc @@ -30,8 +30,7 @@ class SimulateOutgoingTrafficIn { } SimulateOutgoingTrafficIn& ForTimeMs(int time_ms) { - interval_ms_ = rtc::Optional(time_ms); - interval_ms_.emplace(time_ms); + interval_ms_ = time_ms; ProduceTraffic(); return *this; }