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:
parent
5e1a7496bb
commit
248ccf8ad4
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user