diff options
Diffstat (limited to 'libobjc/ivars.c')
-rw-r--r-- | libobjc/ivars.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/libobjc/ivars.c b/libobjc/ivars.c index 65de497fc89..7527df804d2 100644 --- a/libobjc/ivars.c +++ b/libobjc/ivars.c @@ -47,9 +47,7 @@ class_getInstanceVariable (Class class_, const char *name) struct objc_ivar *ivar = &(ivars->ivar_list[i]); if (!strcmp (ivar->ivar_name, name)) - { - return ivar; - } + return ivar; } } class_ = class_getSuperclass (class_); @@ -83,10 +81,8 @@ object_getIndexedIvars (id object) if (object == nil) return NULL; else - { - return (void *)(((char *)object) - + object->class_pointer->instance_size); - } + return (void *)(((char *)object) + + object->class_pointer->instance_size); } struct objc_ivar * @@ -203,9 +199,7 @@ struct objc_ivar ** class_copyIvarList (Class class_, unsigned int *numberOfRetu /* Copy the ivars. */ for (i = 0; i < count; i++) - { - returnValue[i] = &(ivar_list->ivar_list[i]); - } + returnValue[i] = &(ivar_list->ivar_list[i]); returnValue[i] = NULL; } @@ -243,9 +237,7 @@ class_addIvar (Class class_, const char * ivar_name, size_t size, struct objc_ivar *ivar = &(ivars->ivar_list[i]); if (strcmp (ivar->ivar_name, ivar_name) == 0) - { - return NO; - } + return NO; } } |