Optional: Use nullopt and implicit construction in /

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=tommi@webrtc.org

Bug: None
Change-Id: I0ca1b624859a6561e227480b7dac8c254d26ad57
Reviewed-on: https://webrtc-review.googlesource.com/23562
Reviewed-by: Tommi <tommi@webrtc.org>
Commit-Queue: Oskar Sundbom <ossu@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20916}
This commit is contained in:
Oskar Sundbom 2017-11-16 11:26:26 +01:00 committed by Commit Bot
parent 5e1a7496bb
commit 248ccf8ad4

View File

@ -69,7 +69,7 @@ class Unwrapper {
// Only update the internal state to the specified last (unwrapped) value.
void UpdateLast(int64_t last_value) {
last_value_ = rtc::Optional<int64_t>(last_value);
last_value_ = last_value;
}
// Unwrap the value and update the internal state.