Skip to content

Commit

Permalink
Internal Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 595410785
  • Loading branch information
protobuf-github-bot authored and copybara-github committed Jan 3, 2024
1 parent 670e0c2 commit 2bf62b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/google/protobuf/descriptor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6222,7 +6222,7 @@ JsonNameDetails GetJsonNameDetails(const FieldDescriptorProto* field,
field->json_name() != default_json_name) {
return {field, field->json_name(), true};
}
return {field, default_json_name, false};
return {field, std::move(default_json_name), false};
}

bool JsonNameLooksLikeExtension(std::string name) {
Expand Down

0 comments on commit 2bf62b1

Please sign in to comment.