Fix #1592173, conversion operators for directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9541 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
72e32b3ccb
commit
ed9e9141ac
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) {
|
if (Cmp(Getattr(n, k_storage), k_static) != 0) {
|
||||||
String *pname = Swig_cparm_name(pp, i);
|
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);
|
Append(func, fadd);
|
||||||
|
Delete(ctname);
|
||||||
Delete(fadd);
|
Delete(fadd);
|
||||||
Delete(pname);
|
Delete(pname);
|
||||||
pp = nextSibling(pp);
|
pp = nextSibling(pp);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue