Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
d9fa7056
Unverified
Commit
d9fa7056
authored
Dec 16, 2020
by
Robert Haschke
Committed by
GitHub
Dec 15, 2020
Browse files
style: remove redundant instance->owned = true (#2723)
which was just before set to True in instance->allocate_layout()
parent
ffb113d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
include/pybind11/detail/class.h
include/pybind11/detail/class.h
+0
-2
No files found.
include/pybind11/detail/class.h
View file @
d9fa7056
...
...
@@ -340,8 +340,6 @@ inline PyObject *make_new_instance(PyTypeObject *type) {
// Allocate the value/holder internals:
inst
->
allocate_layout
();
inst
->
owned
=
true
;
return
self
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment