Internal Code Change

PiperOrigin-RevId: 595410785
pull/15258/head
Protobuf Team Bot 11 months ago committed by Copybara-Service
parent 670e0c2a0d
commit 2bf62b1873
  1. 2
      src/google/protobuf/descriptor.cc

@ -6222,7 +6222,7 @@ JsonNameDetails GetJsonNameDetails(const FieldDescriptorProto* field,
field->json_name() != default_json_name) { field->json_name() != default_json_name) {
return {field, field->json_name(), true}; 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) { bool JsonNameLooksLikeExtension(std::string name) {

Loading…
Cancel
Save