[qfcc] Fix some curly space

This commit is contained in:
Bill Currie 2020-03-01 13:53:18 +09:00
parent df2ed4b086
commit 1033716b2b
2 changed files with 4 additions and 2 deletions

View file

@ -925,7 +925,7 @@ class_find_method (class_type_t *class_type, method_t *method)
start_methods = methods;
start_class = class;
while (class) {
for (m = methods->head; m; m = m->next)
for (m = methods->head; m; m = m->next) {
if (method_compare (method, m)) {
if (m->type != method->type)
error (0, "method type mismatch");
@ -937,6 +937,7 @@ class_find_method (class_type_t *class_type, method_t *method)
method_set_param_names (m, method);
return m;
}
}
if (class->methods == methods)
class = class->super_class;
else

View file

@ -474,7 +474,7 @@ emit_methods (methodlist_t *methods, const char *name, int instance)
if (!methods)
return 0;
for (count = 0, m = methods->head; m; m = m->next)
for (count = 0, m = methods->head; m; m = m->next) {
if (!m->instance == !instance) {
if (!m->def && options.warnings.unimplemented) {
warning (0, "Method `%c%s' not implemented",
@ -483,6 +483,7 @@ emit_methods (methodlist_t *methods, const char *name, int instance)
if (m->def)
count++;
}
}
if (!count)
return 0;
methods->count = count;