mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Add noexcept annotations to EnableValue moves (flutter/engine#16478)
Fixes a warning when compiling in Visual Studio on Windows.
This commit is contained in:
parent
36f5f76944
commit
f9ebc8e2dc
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user