Skip to content

Commit 440ac9d

Browse files
committed
clang tidy suggestion
1 parent e767ac9 commit 440ac9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/attr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ struct process_attribute<is_new_style_constructor>
541541
/// Process an attribute which adds a typevariable
542542
template <>
543543
struct process_attribute<typevar_record> : process_attribute_default<typevar_record> {
544-
static void init(const typevar_record t, function_record *r) { r->type_vars.push_back(t); }
544+
static void init(const typevar_record &t, function_record *r) { r->type_vars.push_back(t); }
545545
};
546546

547547
inline void check_kw_only_arg(const arg &a, function_record *r) {

0 commit comments

Comments
 (0)