mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-27 07:32:02 +00:00
Pure clang-format fixes (minor accident in PR #3039).
This commit is contained in:
parent
b9241c0330
commit
bcad852f6b
@ -628,15 +628,20 @@ struct smart_holder_type_caster<std::shared_ptr<T>> : smart_holder_type_caster_l
|
|||||||
|
|
||||||
static handle cast(const std::shared_ptr<T> &src, return_value_policy policy, handle parent) {
|
static handle cast(const std::shared_ptr<T> &src, return_value_policy policy, handle parent) {
|
||||||
switch (policy) {
|
switch (policy) {
|
||||||
case return_value_policy::automatic: break;
|
case return_value_policy::automatic:
|
||||||
case return_value_policy::automatic_reference: break;
|
break;
|
||||||
|
case return_value_policy::automatic_reference:
|
||||||
|
break;
|
||||||
case return_value_policy::take_ownership:
|
case return_value_policy::take_ownership:
|
||||||
throw cast_error("Invalid return_value_policy for shared_ptr (take_ownership).");
|
throw cast_error("Invalid return_value_policy for shared_ptr (take_ownership).");
|
||||||
case return_value_policy::copy: break;
|
case return_value_policy::copy:
|
||||||
case return_value_policy::move: break;
|
break;
|
||||||
|
case return_value_policy::move:
|
||||||
|
break;
|
||||||
case return_value_policy::reference:
|
case return_value_policy::reference:
|
||||||
throw cast_error("Invalid return_value_policy for shared_ptr (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)
|
if (!src)
|
||||||
return none().release();
|
return none().release();
|
||||||
|
Loading…
Reference in New Issue
Block a user