Don't create a helper class if is_singleton is true (because the destructor will likely be private)
This commit is contained in:
1 parent
31725ec8b5
commit
c7a58212be
1 file changed
+2
-1
@@ -538,7 +538,8 @@ class CppClass(object):
|
||||
if self.helper_class_disabled:
|
||||
return None
|
||||
if self.helper_class is None:
|
||||
self.helper_class = CppHelperClass(self)
|
||||
if not self.is_singleton:
|
||||
self.helper_class = CppHelperClass(self)
|
||||
return self.helper_class
|
||||
|
||||
def get_type_narrowing_root(self):
|
||||
|
||||
Reference in new issue
Block a user