Set wrap:name attribute when generating a call to a method in a base class.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12132 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Ian Lance Taylor 2010-06-16 15:43:05 +00:00
commit e7fde8c432

View file

@ -2031,7 +2031,8 @@ private:
Delete(SwigType_pop_function(result));
// If the base method is imported, wrap:action may not be set.
Swig_save("goBaseMethod", method, "wrap:action", "parms", NULL);
Swig_save("goBaseMethod", method, "wrap:name", "wrap:action", "parms", NULL);
Setattr(method, "wrap:name", wname);
if (Getattr(method, "wrap:action") == NULL) {
if (!is_static) {
Swig_MethodToFunction(method, getNSpace(), getClassType(), (Getattr(method, "template") != NULL ? SmartPointer : Extend | SmartPointer), NULL, false);