From ee7fd6cdef336bf04250bdd256015f34176735dd Mon Sep 17 00:00:00 2001 From: CEL Dev Team Date: Mon, 15 Jun 2026 20:42:31 -0700 Subject: [PATCH] No public description PiperOrigin-RevId: 932832373 --- runtime/internal/runtime_type_provider.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/runtime/internal/runtime_type_provider.cc b/runtime/internal/runtime_type_provider.cc index 40f5ff575..e6fd55d2c 100644 --- a/runtime/internal/runtime_type_provider.cc +++ b/runtime/internal/runtime_type_provider.cc @@ -56,7 +56,7 @@ absl::StatusOr> RuntimeTypeProvider::FindTypeImpl( if (const auto it = types_.find(name); it != types_.end()) { return it->second; } - return absl::nullopt; + return std::nullopt; } absl::StatusOr> @@ -69,7 +69,7 @@ RuntimeTypeProvider::FindEnumConstantImpl(absl::string_view type, const google::protobuf::EnumDescriptor* enum_desc = descriptor_pool_->FindEnumTypeByName(type); if (enum_desc == nullptr) { - return absl::nullopt; + return std::nullopt; } // Note: we don't support strong enum typing at this time so only the fully @@ -78,7 +78,7 @@ RuntimeTypeProvider::FindEnumConstantImpl(absl::string_view type, const google::protobuf::EnumValueDescriptor* value_desc = enum_desc->FindValueByName(value); if (value_desc == nullptr) { - return absl::nullopt; + return std::nullopt; } return TypeIntrospector::EnumConstant{ @@ -95,13 +95,13 @@ RuntimeTypeProvider::FindStructTypeFieldByNameImpl( } const auto* desc = descriptor_pool_->FindMessageTypeByName(type); if (desc == nullptr) { - return absl::nullopt; + return std::nullopt; } const auto* field_desc = desc->FindFieldByName(name); if (field_desc == nullptr) { field_desc = descriptor_pool_->FindExtensionByPrintableName(desc, name); if (field_desc == nullptr) { - return absl::nullopt; + return std::nullopt; } } return MessageTypeField(field_desc);