We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2989c4 commit 6a6b180Copy full SHA for 6a6b180
robotpy_build/autowrap/cxxparser.py
@@ -1105,7 +1105,7 @@ def _on_class_method(
1105
1106
# automatically retain references passed to constructors if the
1107
# user didn't specify their own keepalive
1108
- if is_constructor and not method_data.keepalive:
+ if is_constructor and method_data.keepalive is None:
1109
for i, pctx in enumerate(fctx.filtered_params):
1110
if pctx.full_cpp_type.endswith("&"):
1111
fctx.keepalives.append((1, i + 2))
0 commit comments