Constness fix.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5781 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Matthias Köppe 2004-03-21 13:15:06 +00:00
commit 035bb2c955

View file

@ -665,7 +665,7 @@ public:
if (maybe_delimiter && Len(output) > 0 && Len(tm) > 0) {
Printv(output, maybe_delimiter, NIL);
}
String *pn = (name == NULL) ? Getattr(p,"name") : name;
const String *pn = (name == NULL) ? Getattr(p,"name") : name;
String *pt = Getattr(p,"type");
Replaceall(tm, "$name", pn); // legacy for $parmname
Replaceall(tm, "$type", SwigType_str(pt,0));