From 6fe5055bd63d5b2d8f6458826d3364a3ec75279a Mon Sep 17 00:00:00 2001 From: Stuart Morgan Date: Thu, 6 Feb 2020 13:19:42 -0800 Subject: [PATCH] Add noexcept annotations to EnableValue moves Fixes a warning when compiling in Visual Studio on Windows. --- .../cpp/client_wrapper/include/flutter/encodable_value.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/platform/common/cpp/client_wrapper/include/flutter/encodable_value.h b/shell/platform/common/cpp/client_wrapper/include/flutter/encodable_value.h index 03d9803fe14c9..a63a4335c2b8f 100644 --- a/shell/platform/common/cpp/client_wrapper/include/flutter/encodable_value.h +++ b/shell/platform/common/cpp/client_wrapper/include/flutter/encodable_value.h @@ -204,7 +204,7 @@ class EncodableValue { } } - EncodableValue(EncodableValue&& other) { *this = std::move(other); } + EncodableValue(EncodableValue&& other) noexcept { *this = std::move(other); } EncodableValue& operator=(const EncodableValue& other) { if (&other == this) { @@ -216,7 +216,7 @@ class EncodableValue { return *this; } - EncodableValue& operator=(EncodableValue&& other) { + EncodableValue& operator=(EncodableValue&& other) noexcept { if (&other == this) { return *this; }