Add missing 'throw' modifiers as needed to method signatures in helper classes
This commit is contained in:
1 parent
f46b8fffa0
commit
39db96d5b2
4 files changed
+17
-1
No files matched your search
@@ -973,6 +973,9 @@ class CppVirtualMethodProxy(ReverseWrapperBase):
|
||||
else:
|
||||
decl_post_modifiers = ''
|
||||
|
||||
if self.method.throw:
|
||||
decl_post_modifiers += " throw (%s)" % (', '.join([ex.full_name for ex in self.method.throw]),)
|
||||
|
||||
params_list = ', '.join([join_ctype_and_name(param.ctype, param.name)
|
||||
for param in self.parameters])
|
||||
code_sink.writeln("virtual %s %s(%s)%s;" %
|
||||
@@ -987,6 +990,9 @@ class CppVirtualMethodProxy(ReverseWrapperBase):
|
||||
else:
|
||||
decl_post_modifiers = []
|
||||
|
||||
if self.method.throw:
|
||||
decl_post_modifiers.append("throw (%s)" % (', '.join([ex.full_name for ex in self.method.throw]),))
|
||||
|
||||
## if the python subclass doesn't define a virtual method,
|
||||
## just chain to parent class and don't do anything else
|
||||
call_params = ', '.join([param.name for param in self.parameters])
|
||||
|
||||
Reference in new issue
Block a user