diff --git a/Source/Modules/lang.cxx b/Source/Modules/lang.cxx index 908aa0b52..4fc1471b0 100644 --- a/Source/Modules/lang.cxx +++ b/Source/Modules/lang.cxx @@ -3530,6 +3530,7 @@ String *Language::makeParameterName(Node *n, Parm *p, int arg_num, bool setter) // Some languages (C#) insist on calling the input variable "value" while // others (D, Java) could, in principle, use something different but this // would require more work, and so we just use "value" for them too. + // For setters the parameter name sometimes includes C++ scope resolution which needs removing. Delete(arg); arg = NewString("value"); } diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx index c4b36ed06..e2c3180ff 100644 --- a/Source/Modules/python.cxx +++ b/Source/Modules/python.cxx @@ -1533,7 +1533,7 @@ public: // so we only minimally rename them in Swig_name_make(), e.g. replacing "keyword" // with "_keyword" if they have any name at all. if (check_kwargs(n)) { - String* name = Getattr(p, "name"); + String *name = Getattr(p, "name"); if (name) return Swig_name_make(p, 0, name, 0, 0); } @@ -1554,7 +1554,7 @@ public: * The "lname" attribute in each parameter in plist will be contain a parameter name * ----------------------------------------------------------------------------- */ - void addMissingParameterNames(Node* n, ParmList *plist, int arg_offset) { + void addMissingParameterNames(Node *n, ParmList *plist, int arg_offset) { Parm *p = plist; int i = arg_offset; while (p) {