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:
William S Fulton 2006-11-10 23:08:51 +00:00
commit 7577d0ad70

View file

@ -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);