forked from firka/flutter
Add noexcept annotations to EnableValue moves (flutter/engine#16478)
Fixes a warning when compiling in Visual Studio on Windows.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user