File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -1516,8 +1516,8 @@ class capsule : public object {
1516
1516
}
1517
1517
}
1518
1518
1519
- // NOLINTNEXTLINE(google-explicit-constructor)
1520
- template < typename T> operator T *() const {
1519
+ template < typename T>
1520
+ operator T *() const { // NOLINT(google-explicit-constructor)
1521
1521
return get_pointer<T>();
1522
1522
}
1523
1523
Original file line number Diff line number Diff line change @@ -400,10 +400,11 @@ TEST_SUBMODULE(stl, m) {
400
400
m.def (" half_or_none_refsensitive" , [](int x) -> refsensitive_opt_int {
401
401
return x != 0 ? refsensitive_opt_int (x / 2 ) : refsensitive_opt_int ();
402
402
});
403
- // NOLINTNEXTLINE(performance-unnecessary-value-param)
404
- m.def (" test_nullopt_refsensitive" , [](refsensitive_opt_int x) {
405
- return x ? x.value () : 42 ;
406
- }, py::arg_v (" x" , refsensitive_opt_int (), " None" ));
403
+ m.def (
404
+ " test_nullopt_refsensitive" ,
405
+ // NOLINTNEXTLINE(performance-unnecessary-value-param)
406
+ [](refsensitive_opt_int x) { return x ? x.value () : 42 ; },
407
+ py::arg_v (" x" , refsensitive_opt_int (), " None" ));
407
408
m.def (" test_no_assign_refsensitive" , [](const refsensitive_opt_no_assign &x) {
408
409
return x ? x->value : 42 ;
409
410
}, py::arg_v (" x" , refsensitive_opt_no_assign (), " None" ));
You can’t perform that action at this time.
0 commit comments