mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 16:13:53 +00:00
[SmartHolder] fix(clang-tidy): apply clang-tidy performance fixes (#3048)
* Apply clang-tidy performance fixes * Fix bug introduced by double insert * Revert all non-smart-holder changes
This commit is contained in:
parent
cc0402ef19
commit
c44b41e7c6
@ -79,7 +79,7 @@ public:
|
||||
}
|
||||
// type_caster_generic::load_value END
|
||||
}
|
||||
loaded_v_h = std::move(v_h);
|
||||
loaded_v_h = v_h;
|
||||
loaded_v_h.type = typeinfo;
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ struct trampoline_self_life_support {
|
||||
// For the next two, the default implementations generate undefined behavior (ASAN failures
|
||||
// manually verified). The reason is that v_h needs to be kept default-initialized.
|
||||
trampoline_self_life_support(const trampoline_self_life_support &) {}
|
||||
trampoline_self_life_support(trampoline_self_life_support &&) {}
|
||||
trampoline_self_life_support(trampoline_self_life_support &&) noexcept {}
|
||||
|
||||
// These should never be needed (please provide test cases if you think they are).
|
||||
trampoline_self_life_support &operator=(const trampoline_self_life_support &) = delete;
|
||||
|
Loading…
Reference in New Issue
Block a user