Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion robotpy_build/autowrap/cxxparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ def _on_class_method(

# automatically retain references passed to constructors if the
# user didn't specify their own keepalive
if is_constructor and not method_data.keepalive:
if is_constructor and method_data.keepalive is None:
for i, pctx in enumerate(fctx.filtered_params):
if pctx.full_cpp_type.endswith("&"):
fctx.keepalives.append((1, i + 2))
Expand Down
Loading