File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ absl::optional<FieldMask> MutationBatch::ApplyToLocalDocument(
97
97
// TODO(dconeybe) Replace absl::nullopt with a FieldMask?
98
98
auto new_mutated_fields = mutation.ApplyToLocalView (
99
99
document, std::move (mutated_fields), local_write_time_);
100
- mutated_fields. swap (new_mutated_fields);
100
+ mutated_fields = std::move (new_mutated_fields);
101
101
}
102
102
}
103
103
@@ -106,7 +106,7 @@ absl::optional<FieldMask> MutationBatch::ApplyToLocalDocument(
106
106
if (mutation.key () == document.key ()) {
107
107
auto new_mutated_fields = mutation.ApplyToLocalView (
108
108
document, std::move (mutated_fields), local_write_time_);
109
- mutated_fields. swap (new_mutated_fields);
109
+ mutated_fields = std::move (new_mutated_fields);
110
110
}
111
111
}
112
112
You can’t perform that action at this time.
0 commit comments