Skip to content

Commit

Permalink
Remove stray line (probably from an accident/oversight a long time ag…
Browse files Browse the repository at this point in the history
…o; harmless).
  • Loading branch information
Ralf W. Grosse-Kunstleve authored and rwgk committed Jun 30, 2024
1 parent 08c83b8 commit 2c80d79
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion include/pybind11/detail/init.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ void construct(value_and_holder &v_h, Cpp<Class> *ptr, bool need_alias) {
// the holder and destruction happens when we leave the C++ scope, and the holder
// class gets to handle the destruction however it likes.
v_h.value_ptr() = ptr;
v_h.set_instance_registered(true); // To prevent init_instance from registering it
v_h.set_instance_registered(true); // SHORTCUT To prevent init_instance from registering it
// DANGER ZONE BEGIN: exceptions will leave v_h in an invalid state.
v_h.type->init_instance(v_h.inst, nullptr); // Set up the holder
Expand Down

0 comments on commit 2c80d79

Please sign in to comment.