From 1ae715dcfa2f61a87cdf422cf4cc3be9c2bc52df Mon Sep 17 00:00:00 2001 From: Justin King Date: Tue, 13 Oct 2026 09:45:25 -0700 Subject: [PATCH] Take `cel::AttributeMatch` by value PiperOrigin-RevId: 998699200 --- base/attribute_matcher.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/base/attribute_matcher.h b/base/attribute_matcher.h index 01d60ba85..f10448b0b 100644 --- a/base/attribute_matcher.h +++ b/base/attribute_matcher.h @@ -200,8 +200,7 @@ AttributeMatch MakeAttributeMatch( const common_internal::AttributeMatcherNode* node); [[nodiscard]] -const AttributeMatcherNode* GetAttributeMatcherNode( - const AttributeMatch& match); +const AttributeMatcherNode* GetAttributeMatcherNode(AttributeMatch match); } // namespace common_internal @@ -252,7 +251,7 @@ class [[nodiscard]] AttributeMatch { friend AttributeMatch common_internal::MakeAttributeMatch( const common_internal::AttributeMatcherNode* node); friend const common_internal::AttributeMatcherNode* - common_internal::GetAttributeMatcherNode(const AttributeMatch& match); + common_internal::GetAttributeMatcherNode(AttributeMatch match); AttributeMatch NotNoneMatchQualifier( const AttributeQualifierView& qualifier) const { @@ -276,7 +275,7 @@ inline AttributeMatch MakeAttributeMatch( [[nodiscard]] inline const AttributeMatcherNode* GetAttributeMatcherNode( - const AttributeMatch& match) { + AttributeMatch match) { return match.node_; }