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 <ossu@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21571}
This commit is contained in:
Oskar Sundbom 2018-01-11 11:29:52 +01:00 committed by Commit Bot
parent b3fb9389b2
commit 10b96ebcad

View File

@ -30,8 +30,7 @@ class SimulateOutgoingTrafficIn {
}
SimulateOutgoingTrafficIn& ForTimeMs(int time_ms) {
interval_ms_ = rtc::Optional<int>(time_ms);
interval_ms_.emplace(time_ms);
interval_ms_ = time_ms;
ProduceTraffic();
return *this;
}