Skip to content

Commit d14af6c

Browse files
style: pre-commit fixes
1 parent e723404 commit d14af6c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

include/pybind11/detail/internals.h

+6-5
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)