Fix #1505594 director objects not returned as director objects in %extend methods.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9441 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e92b336fc5
commit
bcfab911bd
2 changed files with 2 additions and 2 deletions
|
|
@ -2041,7 +2041,7 @@ public:
|
||||||
String *type = Getattr(n, "type");
|
String *type = Getattr(n, "type");
|
||||||
//Node *classNode = Swig_methodclass(n);
|
//Node *classNode = Swig_methodclass(n);
|
||||||
//Node *module = Getattr(classNode, "module");
|
//Node *module = Getattr(classNode, "module");
|
||||||
Node *parent = Getattr(n,"parentNode");
|
Node *parent = Swig_methodclass(n);
|
||||||
Node *module = Getattr(parent, "module");
|
Node *module = Getattr(parent, "module");
|
||||||
Node *target = Swig_directormap(module, type);
|
Node *target = Swig_directormap(module, type);
|
||||||
if (target) unwrap = 1;
|
if (target) unwrap = 1;
|
||||||
|
|
|
||||||
|
|
@ -1235,7 +1235,7 @@ public:
|
||||||
int is_reference = SwigType_isreference_return(decl);
|
int is_reference = SwigType_isreference_return(decl);
|
||||||
if (is_pointer || is_reference) {
|
if (is_pointer || is_reference) {
|
||||||
String *type = Getattr(n, "type");
|
String *type = Getattr(n, "type");
|
||||||
Node *parent = Getattr(n,"parentNode");
|
Node *parent = Swig_methodclass(n);
|
||||||
Node *modname = Getattr(parent, "module");
|
Node *modname = Getattr(parent, "module");
|
||||||
Node *target = Swig_directormap(modname, type);
|
Node *target = Swig_directormap(modname, type);
|
||||||
if (target) unwrap = true;
|
if (target) unwrap = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue