Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 03f639e

Browse files
Add noexcept annotations to EnableValue moves (#16478)
Fixes a warning when compiling in Visual Studio on Windows.
1 parent 0517627 commit 03f639e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shell/platform/common/cpp/client_wrapper/include/flutter/encodable_value.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ class EncodableValue {
204204
}
205205
}
206206

207-
EncodableValue(EncodableValue&& other) { *this = std::move(other); }
207+
EncodableValue(EncodableValue&& other) noexcept { *this = std::move(other); }
208208

209209
EncodableValue& operator=(const EncodableValue& other) {
210210
if (&other == this) {
@@ -216,7 +216,7 @@ class EncodableValue {
216216
return *this;
217217
}
218218

219-
EncodableValue& operator=(EncodableValue&& other) {
219+
EncodableValue& operator=(EncodableValue&& other) noexcept {
220220
if (&other == this) {
221221
return *this;
222222
}

0 commit comments

Comments
 (0)