Fix #1592173, conversion operators for directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9541 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
41bcb44b24
commit
7577d0ad70
1 changed files with 3 additions and 1 deletions
|
|
@ -920,8 +920,10 @@ int Swig_MethodToFunction(Node *n, String *classname, int flags, SwigType *direc
|
|||
|
||||
if (Cmp(Getattr(n, k_storage), k_static) != 0) {
|
||||
String *pname = Swig_cparm_name(pp, i);
|
||||
String *fadd = NewStringf("(%s*)(%s)->operator ->()", cname, pname);
|
||||
String *ctname = SwigType_namestr(cname);
|
||||
String *fadd = NewStringf("(%s*)(%s)->operator ->()", ctname, pname);
|
||||
Append(func, fadd);
|
||||
Delete(ctname);
|
||||
Delete(fadd);
|
||||
Delete(pname);
|
||||
pp = nextSibling(pp);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue