style cleanup
[blender.git] / source / blender / makesrna / intern / rna_access.c
index 8e9c0dbc4c459fd567cbce8317e3bef9a6720629..5b5367654eb4b4fc1a301743960208670e5e7989 100644 (file)
@@ -2590,7 +2590,7 @@ void RNA_property_pointer_set(PointerRNA *ptr, PropertyRNA *prop, PointerRNA ptr
 
 PointerRNA RNA_property_pointer_get_default(PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop))
 {
-       /*PointerPropertyRNA *pprop = (PointerPropertyRNA*)prop; */
+       /*PointerPropertyRNA *pprop = (PointerPropertyRNA *)prop; */
 
        /* BLI_assert(RNA_property_type(prop) == PROP_POINTER); */
 
@@ -2729,7 +2729,7 @@ int RNA_property_collection_length(PointerRNA *ptr, PropertyRNA *prop)
 void RNA_property_collection_add(PointerRNA *ptr, PropertyRNA *prop, PointerRNA *r_ptr)
 {
        IDProperty *idprop;
-/*     CollectionPropertyRNA *cprop = (CollectionPropertyRNA*)prop; */
+/*     CollectionPropertyRNA *cprop = (CollectionPropertyRNA *)prop; */
 
        BLI_assert(RNA_property_type(prop) == PROP_COLLECTION);
 
@@ -2788,7 +2788,7 @@ void RNA_property_collection_add(PointerRNA *ptr, PropertyRNA *prop, PointerRNA
 int RNA_property_collection_remove(PointerRNA *ptr, PropertyRNA *prop, int key)
 {
        IDProperty *idprop;
-/*     CollectionPropertyRNA *cprop = (CollectionPropertyRNA*)prop; */
+/*     CollectionPropertyRNA *cprop = (CollectionPropertyRNA *)prop; */
 
        BLI_assert(RNA_property_type(prop) == PROP_COLLECTION);
 
@@ -3035,11 +3035,11 @@ int RNA_property_collection_raw_array(PointerRNA *ptr, PropertyRNA *prop, Proper
 #define RAW_GET(dtype, var, raw, a)                                           \
 {                                                                             \
        switch (raw.type) {                                                       \
-               case PROP_RAW_CHAR: var = (dtype)((char*)raw.array)[a]; break;        \
-               case PROP_RAW_SHORT: var = (dtype)((short*)raw.array)[a]; break;      \
-               case PROP_RAW_INT: var = (dtype)((int*)raw.array)[a]; break;          \
-               case PROP_RAW_FLOAT: var = (dtype)((float*)raw.array)[a]; break;      \
-               case PROP_RAW_DOUBLE: var = (dtype)((double*)raw.array)[a]; break;    \
+               case PROP_RAW_CHAR: var = (dtype)((char *)raw.array)[a]; break;       \
+               case PROP_RAW_SHORT: var = (dtype)((short *)raw.array)[a]; break;     \
+               case PROP_RAW_INT: var = (dtype)((int *)raw.array)[a]; break;         \
+               case PROP_RAW_FLOAT: var = (dtype)((float *)raw.array)[a]; break;     \
+               case PROP_RAW_DOUBLE: var = (dtype)((double *)raw.array)[a]; break;   \
                default: var = (dtype)0;                                              \
        }                                                                         \
 } (void)0
@@ -3047,11 +3047,11 @@ int RNA_property_collection_raw_array(PointerRNA *ptr, PropertyRNA *prop, Proper
 #define RAW_SET(dtype, raw, a, var)                                           \
 {                                                                             \
        switch (raw.type) {                                                       \
-               case PROP_RAW_CHAR: ((char*)raw.array)[a] = (char)var; break;         \
-               case PROP_RAW_SHORT: ((short*)raw.array)[a] = (short)var; break;      \
-               case PROP_RAW_INT: ((int*)raw.array)[a] = (int)var; break;            \
-               case PROP_RAW_FLOAT: ((float*)raw.array)[a] = (float)var; break;      \
-               case PROP_RAW_DOUBLE: ((double*)raw.array)[a] = (double)var; break;   \
+               case PROP_RAW_CHAR: ((char *)raw.array)[a] = (char)var; break;        \
+               case PROP_RAW_SHORT: ((short *)raw.array)[a] = (short)var; break;     \
+               case PROP_RAW_INT: ((int *)raw.array)[a] = (int)var; break;           \
+               case PROP_RAW_FLOAT: ((float *)raw.array)[a] = (float)var; break;     \
+               case PROP_RAW_DOUBLE: ((double *)raw.array)[a] = (double)var; break;  \
                default: break;                                                       \
        }                                                                         \
 } (void)0