OSDN Git Service

In libobjc/:
[pf3gnuchains/gcc-fork.git] / libobjc / ivars.c
index 65de497..7527df8 100644 (file)
@@ -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;
        }
     }