From 3d1b5d7280ad40d734cc8ee25391c6b7077880c3 Mon Sep 17 00:00:00 2001 From: Hao Nguyen Date: Mon, 13 May 2019 14:23:36 -0700 Subject: [PATCH] Move CreateUnknownEnumValues to anonymous namespace --- src/google/protobuf/generated_message_reflection.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/google/protobuf/generated_message_reflection.cc b/src/google/protobuf/generated_message_reflection.cc index af4a7f12ee..34f0f8eee2 100644 --- a/src/google/protobuf/generated_message_reflection.cc +++ b/src/google/protobuf/generated_message_reflection.cc @@ -1021,6 +1021,10 @@ bool IsIndexInHasBitSet(const uint32* has_bit_set, return ((has_bit_set[has_bit_index / 32] >> (has_bit_index % 32)) & static_cast(1)) != 0; } + +bool CreateUnknownEnumValues(const FileDescriptor* file) { + return file->syntax() == FileDescriptor::SYNTAX_PROTO3; +} } // namespace void Reflection::ListFields(const Message& message, @@ -1288,10 +1292,6 @@ void Reflection::AddString(Message* message, const FieldDescriptor* field, // ------------------------------------------------------------------- -bool CreateUnknownEnumValues(const FileDescriptor* file) { - return file->syntax() == FileDescriptor::SYNTAX_PROTO3; -} - const EnumValueDescriptor* Reflection::GetEnum( const Message& message, const FieldDescriptor* field) const { // Usage checked by GetEnumValue.