File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -314,8 +314,8 @@ inline internals **&get_internals_pp() {
314
314
return internals_pp;
315
315
}
316
316
317
- const std::forward_list<ExceptionTranslator>& get_exception_translators ();
318
- const std::forward_list<ExceptionTranslator>& get_local_exception_translators ();
317
+ const std::forward_list<ExceptionTranslator> & get_exception_translators ();
318
+ const std::forward_list<ExceptionTranslator> & get_local_exception_translators ();
319
319
320
320
// Apply all the extensions translators from a list
321
321
// Return true if one of the translators completed without raising an exception
@@ -334,7 +334,8 @@ inline bool apply_exception_translators(const std::forward_list<ExceptionTransla
334
334
return false ;
335
335
}
336
336
337
- inline bool apply_exception_translators (const std::forward_list<ExceptionTranslator> &translators) {
337
+ inline bool
338
+ apply_exception_translators (const std::forward_list<ExceptionTranslator> &translators) {
338
339
return apply_exception_translators (translators, std::current_exception ());
339
340
}
340
341
@@ -521,7 +522,7 @@ PYBIND11_NOINLINE internals &get_internals() {
521
522
return **internals_pp;
522
523
}
523
524
524
- inline const std::forward_list<ExceptionTranslator>& get_exception_translators () {
525
+ inline const std::forward_list<ExceptionTranslator> & get_exception_translators () {
525
526
return get_internals ().registered_exception_translators ;
526
527
}
527
528
@@ -581,7 +582,7 @@ inline local_internals &get_local_internals() {
581
582
return *locals;
582
583
}
583
584
584
- inline const std::forward_list<ExceptionTranslator>& get_local_exception_translators () {
585
+ inline const std::forward_list<ExceptionTranslator> & get_local_exception_translators () {
585
586
return get_local_internals ().registered_exception_translators ;
586
587
}
587
588
You can’t perform that action at this time.
0 commit comments