Add the dummy methods to helper classes as well, so that unwrapped pure virtual methods are detected and the helper class disabled

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2008-05-25 21:43:38 +01:00
1 parent c3ab54d71b
commit 884091cce6
2 files changed
+18 -2

No files matched your search

+7 -2
View File
@@ -1020,8 +1020,13 @@ public:
## is a very important fact that needs to be
## recorded in the class, even if the method is
## not wrapped.
dummy = CppDummyMethod(*args, **kwargs)
self._dummy_methods.append(dummy)
method = CppDummyMethod(*args, **kwargs)
self._dummy_methods.append(method)
self._have_pure_virtual_methods = None
helper_class = self.get_helper_class()
if helper_class is not None:
helper_class.add_virtual_method(method)
return None
self._add_method_obj(meth)
return meth