From 248ccf8ad454e4558d62a8fd99c97474878fbea1 Mon Sep 17 00:00:00 2001 From: Oskar Sundbom Date: Thu, 16 Nov 2017 11:26:26 +0100 Subject: [PATCH] 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 Commit-Queue: Oskar Sundbom Cr-Commit-Position: refs/heads/master@{#20916} --- modules/include/module_common_types_public.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/include/module_common_types_public.h b/modules/include/module_common_types_public.h index cfa28ab8c2..2fbb49ae9c 100644 --- a/modules/include/module_common_types_public.h +++ b/modules/include/module_common_types_public.h @@ -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(last_value); + last_value_ = last_value; } // Unwrap the value and update the internal state.