From 2bf62b18733761e50d35412d004241a42c3ce4c1 Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Wed, 3 Jan 2024 08:37:10 -0800 Subject: [PATCH] Internal Code Change PiperOrigin-RevId: 595410785 --- src/google/protobuf/descriptor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/descriptor.cc b/src/google/protobuf/descriptor.cc index ff373708b6..00c21dd256 100644 --- a/src/google/protobuf/descriptor.cc +++ b/src/google/protobuf/descriptor.cc @@ -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) {