Skip to content

Commit 2c80d79

Browse files
committed
Remove stray line (probably from an accident/oversight a long time ago; harmless).
1 parent 08c83b8 commit 2c80d79

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

include/pybind11/detail/init.h

-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ void construct(value_and_holder &v_h, Cpp<Class> *ptr, bool need_alias) {
129129
// the holder and destruction happens when we leave the C++ scope, and the holder
130130
// class gets to handle the destruction however it likes.
131131
v_h.value_ptr() = ptr;
132-
v_h.set_instance_registered(true); // To prevent init_instance from registering it
133132
v_h.set_instance_registered(true); // SHORTCUT To prevent init_instance from registering it
134133
// DANGER ZONE BEGIN: exceptions will leave v_h in an invalid state.
135134
v_h.type->init_instance(v_h.inst, nullptr); // Set up the holder

0 commit comments

Comments
 (0)