Skip to content

Commit 1ae715d

Browse files
jckingcopybara-github
authored andcommitted
Take cel::AttributeMatch by value
PiperOrigin-RevId: 998699200
1 parent 21a5734 commit 1ae715d

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎base/attribute_matcher.h‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,7 @@ AttributeMatch MakeAttributeMatch(
200200
const common_internal::AttributeMatcherNode* node);
201201

202202
[[nodiscard]]
203-
const AttributeMatcherNode* GetAttributeMatcherNode(
204-
const AttributeMatch& match);
203+
const AttributeMatcherNode* GetAttributeMatcherNode(AttributeMatch match);
205204

206205
} // namespace common_internal
207206

@@ -252,7 +251,7 @@ class [[nodiscard]] AttributeMatch {
252251
friend AttributeMatch common_internal::MakeAttributeMatch(
253252
const common_internal::AttributeMatcherNode* node);
254253
friend const common_internal::AttributeMatcherNode*
255-
common_internal::GetAttributeMatcherNode(const AttributeMatch& match);
254+
common_internal::GetAttributeMatcherNode(AttributeMatch match);
256255

257256
AttributeMatch NotNoneMatchQualifier(
258257
const AttributeQualifierView& qualifier) const {
@@ -276,7 +275,7 @@ inline AttributeMatch MakeAttributeMatch(
276275

277276
[[nodiscard]]
278277
inline const AttributeMatcherNode* GetAttributeMatcherNode(
279-
const AttributeMatch& match) {
278+
AttributeMatch match) {
280279
return match.node_;
281280
}
282281

0 commit comments

Comments
 (0)