Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 669401217
  • Loading branch information
evalon32 authored and copybara-github committed Sep 3, 2024
1 parent d7fa8c9 commit 42b8f2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eval/public/cel_type_registry.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "eval/public/cel_type_registry.h"

#include <memory>
#include <string>
#include <utility>
#include <vector>

Expand Down Expand Up @@ -67,7 +68,8 @@ void AddEnumFromDescriptor(const google::protobuf::EnumDescriptor* desc,
std::vector<CelTypeRegistry::Enumerator> enumerators;
enumerators.reserve(desc->value_count());
for (int i = 0; i < desc->value_count(); i++) {
enumerators.push_back({desc->value(i)->name(), desc->value(i)->number()});
enumerators.push_back(
{std::string(desc->value(i)->name()), desc->value(i)->number()});
}
registry.RegisterEnum(desc->full_name(), std::move(enumerators));
}
Expand Down

0 comments on commit 42b8f2c

Please # to comment.