Removed last instance of using Strcmp to check for a set/get
method. Replaced with check for flag.
This commit is contained in:
parent
dd24a5dffb
commit
504ef74948
1 changed files with 1 additions and 5 deletions
|
|
@ -1886,11 +1886,7 @@ int R::functionWrapper(Node *n) {
|
||||||
/* Add the name of this member to a list for this class_name.
|
/* Add the name of this member to a list for this class_name.
|
||||||
We will dump all these at the end. */
|
We will dump all these at the end. */
|
||||||
|
|
||||||
int nlen = Len(iname);
|
bool isSet(GetFlag(n, "memberset"));
|
||||||
char *ptr = Char(iname);
|
|
||||||
bool isSet(0);
|
|
||||||
if (nlen > 4) isSet = Strcmp(NewString(&ptr[nlen-4]), "_set") == 0;
|
|
||||||
|
|
||||||
|
|
||||||
String *tmp = NewString("");
|
String *tmp = NewString("");
|
||||||
Printf(tmp, "%s_%s", class_name, isSet ? "set" : "get");
|
Printf(tmp, "%s_%s", class_name, isSet ? "set" : "get");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue