Fixed broken inheritance in shadow classes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@868 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
db4c6ff38e
commit
ff2943a35d
1 changed files with 4 additions and 1 deletions
|
|
@ -1453,12 +1453,15 @@ PYTHON::cpp_inherit(char **baseclass,int) {
|
|||
|
||||
/* Now tell the Python module that we're inheriting from a base class */
|
||||
while (baseclass[i]) {
|
||||
bc = GetChar(hash,baseclass[i]);
|
||||
String *bs = NewString(baseclass[i]);
|
||||
SwigType_add_pointer(bs);
|
||||
bc = GetChar(hash,bs);
|
||||
if (bc) {
|
||||
if (first_base) Putc(',',base_class);
|
||||
Printv(base_class,bc,0);
|
||||
first_base = 1;
|
||||
}
|
||||
Delete(bs);
|
||||
i++;
|
||||
}
|
||||
if (!first_base) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue