mirror of
https://github.com/pybind/pybind11.git
synced 2024-12-02 01:47:12 +00:00
Fix clang-tidy error [performance-move-constructor-init].
This commit is contained in:
parent
498195ac4b
commit
80b05ba663
@ -398,8 +398,9 @@ public:
|
|||||||
|
|
||||||
error_already_set(const error_already_set &) = default;
|
error_already_set(const error_already_set &) = default;
|
||||||
error_already_set(error_already_set &&e) noexcept
|
error_already_set(error_already_set &&e) noexcept
|
||||||
: std::runtime_error(e), m_type{std::move(e.m_type)}, m_value{std::move(e.m_value)},
|
: std::runtime_error(std::move(e)), m_type{std::move(e.m_type)},
|
||||||
m_trace{std::move(e.m_trace)}, m_lazy_what{std::move(e.m_lazy_what)} {};
|
m_value{std::move(e.m_value)}, m_trace{std::move(e.m_trace)}, m_lazy_what{std::move(
|
||||||
|
e.m_lazy_what)} {};
|
||||||
|
|
||||||
inline ~error_already_set() override;
|
inline ~error_already_set() override;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user