@@ -42,7 +42,7 @@ FindStructTypeFieldByNameDirectly(
4242 const google::protobuf::Descriptor* absl_nullable descriptor =
4343 descriptor_pool->FindMessageTypeByName (type);
4444 if (descriptor == nullptr ) {
45- return absl ::nullopt ;
45+ return std ::nullopt ;
4646 }
4747 const google::protobuf::FieldDescriptor* absl_nullable field =
4848 descriptor->FindFieldByName (name);
@@ -54,7 +54,7 @@ FindStructTypeFieldByNameDirectly(
5454 if (field != nullptr ) {
5555 return StructTypeField (MessageTypeField (field));
5656 }
57- return absl ::nullopt ;
57+ return std ::nullopt ;
5858}
5959
6060// Standard implementation for listing fields.
@@ -67,7 +67,7 @@ ListStructTypeFieldsDirectly(
6767 const google::protobuf::Descriptor* absl_nullable descriptor =
6868 descriptor_pool->FindMessageTypeByName (type);
6969 if (descriptor == nullptr ) {
70- return absl ::nullopt ;
70+ return std ::nullopt ;
7171 }
7272
7373 std::vector<const google::protobuf::FieldDescriptor*> extensions;
@@ -100,7 +100,7 @@ DescriptorPoolTypeIntrospector::FindTypeImpl(absl::string_view name) const {
100100 if (enum_descriptor != nullptr ) {
101101 return Type::Enum (enum_descriptor);
102102 }
103- return absl ::nullopt ;
103+ return std ::nullopt ;
104104}
105105
106106absl::StatusOr<std::optional<TypeIntrospector::EnumConstant>>
@@ -112,7 +112,7 @@ DescriptorPoolTypeIntrospector::FindEnumConstantImpl(
112112 const google::protobuf::EnumValueDescriptor* absl_nullable enum_value_descriptor =
113113 enum_descriptor->FindValueByName (value);
114114 if (enum_value_descriptor == nullptr ) {
115- return absl ::nullopt ;
115+ return std ::nullopt ;
116116 }
117117 return EnumConstant{
118118 .type = Type::Enum (enum_descriptor),
@@ -121,7 +121,7 @@ DescriptorPoolTypeIntrospector::FindEnumConstantImpl(
121121 .number = enum_value_descriptor->number (),
122122 };
123123 }
124- return absl ::nullopt ;
124+ return std ::nullopt ;
125125}
126126
127127absl::StatusOr<std::optional<StructTypeField>>
@@ -134,7 +134,7 @@ DescriptorPoolTypeIntrospector::FindStructTypeFieldByNameImpl(
134134 const FieldTable* field_table = GetFieldTable (type);
135135
136136 if (field_table == nullptr ) {
137- return absl ::nullopt ;
137+ return std ::nullopt ;
138138 }
139139
140140 if (auto it = field_table->json_name_map .find (name);
@@ -147,7 +147,7 @@ DescriptorPoolTypeIntrospector::FindStructTypeFieldByNameImpl(
147147 return field_table->fields [it->second ].field ;
148148 }
149149
150- return absl ::nullopt ;
150+ return std ::nullopt ;
151151}
152152
153153absl::StatusOr<
@@ -160,7 +160,7 @@ DescriptorPoolTypeIntrospector::ListFieldsForStructTypeImpl(
160160
161161 const FieldTable* field_table = GetFieldTable (type);
162162 if (field_table == nullptr ) {
163- return absl ::nullopt ;
163+ return std ::nullopt ;
164164 }
165165 std::vector<TypeIntrospector::StructTypeFieldListing> fields;
166166 fields.reserve (field_table->non_extensions .size ());
0 commit comments