Add noexcept annotations to EnableValue moves (flutter/engine#16478)

Fixes a warning when compiling in Visual Studio on Windows.
This commit is contained in:
stuartmorgan 2020-02-06 14:28:31 -08:00 committed by GitHub
parent 36f5f76944
commit f9ebc8e2dc

View File

@ -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;
}