Minor cosmetic source code changes
This commit is contained in:
parent
5d71f91b29
commit
cd725fbe94
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
// Some languages (C#) insist on calling the input variable "value" while
|
||||||
// others (D, Java) could, in principle, use something different but this
|
// others (D, Java) could, in principle, use something different but this
|
||||||
// would require more work, and so we just use "value" for them too.
|
// 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);
|
Delete(arg);
|
||||||
arg = NewString("value");
|
arg = NewString("value");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1533,7 +1533,7 @@ public:
|
||||||
// so we only minimally rename them in Swig_name_make(), e.g. replacing "keyword"
|
// so we only minimally rename them in Swig_name_make(), e.g. replacing "keyword"
|
||||||
// with "_keyword" if they have any name at all.
|
// with "_keyword" if they have any name at all.
|
||||||
if (check_kwargs(n)) {
|
if (check_kwargs(n)) {
|
||||||
String* name = Getattr(p, "name");
|
String *name = Getattr(p, "name");
|
||||||
if (name)
|
if (name)
|
||||||
return Swig_name_make(p, 0, name, 0, 0);
|
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
|
* 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;
|
Parm *p = plist;
|
||||||
int i = arg_offset;
|
int i = arg_offset;
|
||||||
while (p) {
|
while (p) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue