зеркало из https://github.com/mozilla/gecko-dev.git
stop using IsXXX for boolean Getters
This commit is contained in:
Родитель
4bddf368f9
Коммит
a39aee01fc
|
@ -331,11 +331,6 @@ static gboolean
|
|||
attr_accessor(TreeState *state, gboolean getter)
|
||||
{
|
||||
char *attrname = ATTR_IDENT(state->tree).str;
|
||||
if (getter && (ATTR_TYPE(state->tree) == IDLN_TYPE_BOOLEAN)) {
|
||||
fprintf(state->file, " NS_IMETHOD Is%c%s(PRBool *aIs%c%s) = 0;\n",
|
||||
toupper(attrname[0]), attrname + 1,
|
||||
toupper(attrname[0]), attrname + 1);
|
||||
} else {
|
||||
IDL_tree orig = state->tree;
|
||||
fprintf(state->file, " NS_IMETHOD %cet%c%s(",
|
||||
getter ? 'G' : 'S',
|
||||
|
@ -348,7 +343,6 @@ attr_accessor(TreeState *state, gboolean getter)
|
|||
(STARRED_TYPE(orig) ? "" : " "),
|
||||
getter ? "*" : "",
|
||||
toupper(attrname[0]), attrname + 1);
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -331,11 +331,6 @@ static gboolean
|
|||
attr_accessor(TreeState *state, gboolean getter)
|
||||
{
|
||||
char *attrname = ATTR_IDENT(state->tree).str;
|
||||
if (getter && (ATTR_TYPE(state->tree) == IDLN_TYPE_BOOLEAN)) {
|
||||
fprintf(state->file, " NS_IMETHOD Is%c%s(PRBool *aIs%c%s) = 0;\n",
|
||||
toupper(attrname[0]), attrname + 1,
|
||||
toupper(attrname[0]), attrname + 1);
|
||||
} else {
|
||||
IDL_tree orig = state->tree;
|
||||
fprintf(state->file, " NS_IMETHOD %cet%c%s(",
|
||||
getter ? 'G' : 'S',
|
||||
|
@ -348,7 +343,6 @@ attr_accessor(TreeState *state, gboolean getter)
|
|||
(STARRED_TYPE(orig) ? "" : " "),
|
||||
getter ? "*" : "",
|
||||
toupper(attrname[0]), attrname + 1);
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче