From f9ebc8e2dc60a712b37d6fe930db399bc215431a Mon Sep 17 00:00:00 2001 From: stuartmorgan Date: Thu, 6 Feb 2020 14:28:31 -0800 Subject: [PATCH] Add noexcept annotations to EnableValue moves (flutter/engine#16478) 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/engine/src/flutter/shell/platform/common/cpp/client_wrapper/include/flutter/encodable_value.h b/engine/src/flutter/shell/platform/common/cpp/client_wrapper/include/flutter/encodable_value.h index 03d9803fe14..a63a4335c2b 100644 --- a/engine/src/flutter/shell/platform/common/cpp/client_wrapper/include/flutter/encodable_value.h +++ b/engine/src/flutter/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; }