mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-01-27 17:33:16 +08:00
style: remove redundant instance->owned = true (#2723)
which was just before set to True in instance->allocate_layout()
This commit is contained in:
parent
ffb113d1d8
commit
d9fa70561e
@ -340,8 +340,6 @@ inline PyObject *make_new_instance(PyTypeObject *type) {
|
|||||||
// Allocate the value/holder internals:
|
// Allocate the value/holder internals:
|
||||||
inst->allocate_layout();
|
inst->allocate_layout();
|
||||||
|
|
||||||
inst->owned = true;
|
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user