diff --git a/common/value_manager.h b/common/value_manager.h index a87403473..3939a9861 100644 --- a/common/value_manager.h +++ b/common/value_manager.h @@ -15,8 +15,6 @@ #ifndef THIRD_PARTY_CEL_CPP_COMMON_VALUE_MANAGER_H_ #define THIRD_PARTY_CEL_CPP_COMMON_VALUE_MANAGER_H_ -#include - #include "absl/base/attributes.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" @@ -34,19 +32,20 @@ namespace cel { class ValueManager : public virtual ValueFactory, public virtual TypeManager { public: // See `ValueProvider::NewListValueBuilder`. - absl::StatusOr> NewListValueBuilder(ListType type) { - return GetValueProvider().NewListValueBuilder(*this, std::move(type)); + absl::StatusOr> NewListValueBuilder( + ListTypeView type) { + return GetValueProvider().NewListValueBuilder(*this, type); } // See `ValueProvider::NewMapValueBuilder`. - absl::StatusOr> NewMapValueBuilder(MapType type) { - return GetValueProvider().NewMapValueBuilder(*this, std::move(type)); + absl::StatusOr> NewMapValueBuilder(MapTypeView type) { + return GetValueProvider().NewMapValueBuilder(*this, type); } // See `ValueProvider::NewStructValueBuilder`. absl::StatusOr> NewStructValueBuilder( - StructType type) { - return GetValueProvider().NewStructValueBuilder(*this, std::move(type)); + StructTypeView type) { + return GetValueProvider().NewStructValueBuilder(*this, type); } // See `ValueProvider::NewValueBuilder`.