From bcad852f6b20edd45077b13a1b1edd57ea482b14 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Tue, 29 Jun 2021 16:16:00 -0700 Subject: [PATCH] Pure clang-format fixes (minor accident in PR #3039). --- .../pybind11/detail/smart_holder_type_casters.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/include/pybind11/detail/smart_holder_type_casters.h b/include/pybind11/detail/smart_holder_type_casters.h index d6d62016c..b61d0a999 100644 --- a/include/pybind11/detail/smart_holder_type_casters.h +++ b/include/pybind11/detail/smart_holder_type_casters.h @@ -628,15 +628,20 @@ struct smart_holder_type_caster> : smart_holder_type_caster_l static handle cast(const std::shared_ptr &src, return_value_policy policy, handle parent) { switch (policy) { - case return_value_policy::automatic: break; - case return_value_policy::automatic_reference: break; + case return_value_policy::automatic: + break; + case return_value_policy::automatic_reference: + break; case return_value_policy::take_ownership: throw cast_error("Invalid return_value_policy for shared_ptr (take_ownership)."); - case return_value_policy::copy: break; - case return_value_policy::move: break; + case return_value_policy::copy: + break; + case return_value_policy::move: + break; case return_value_policy::reference: throw cast_error("Invalid return_value_policy for shared_ptr (reference)."); - case return_value_policy::reference_internal: break; + case return_value_policy::reference_internal: + break; } if (!src) return none().release();