File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 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() {
314314 return internals_pp;
315315}
316316
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 ();
319319
320320// Apply all the extensions translators from a list
321321// 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
334334 return false ;
335335}
336336
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) {
338339 return apply_exception_translators (translators, std::current_exception ());
339340}
340341
@@ -521,7 +522,7 @@ PYBIND11_NOINLINE internals &get_internals() {
521522 return **internals_pp;
522523}
523524
524- inline const std::forward_list<ExceptionTranslator>& get_exception_translators () {
525+ inline const std::forward_list<ExceptionTranslator> & get_exception_translators () {
525526 return get_internals ().registered_exception_translators ;
526527}
527528
@@ -581,7 +582,7 @@ inline local_internals &get_local_internals() {
581582 return *locals;
582583}
583584
584- inline const std::forward_list<ExceptionTranslator>& get_local_exception_translators () {
585+ inline const std::forward_list<ExceptionTranslator> & get_local_exception_translators () {
585586 return get_local_internals ().registered_exception_translators ;
586587}
587588
You can’t perform that action at this time.
0 commit comments