Merging r45620 through r45692 from trunk into soc-2011-tomato
[blender.git] / source / blender / makesrna / RNA_access.h
index 59061ac9a3314b7db83c3f0b15c92eac44111b47..316ea46d1598474aae653eb3b91d81d6dc905cec 100644 (file)
@@ -903,11 +903,11 @@ void RNA_collection_clear(PointerRNA *ptr, const char *name);
 #define RNA_BEGIN(sptr, itemptr, propname)                                    \
        {                                                                         \
                CollectionPropertyIterator rna_macro_iter;                            \
-               for(RNA_collection_begin(sptr, propname, &rna_macro_iter);            \
-                   rna_macro_iter.valid;                                             \
-                   RNA_property_collection_next(&rna_macro_iter))                    \
+               for (RNA_collection_begin(sptr, propname, &rna_macro_iter);           \
+                    rna_macro_iter.valid;                                            \
+                    RNA_property_collection_next(&rna_macro_iter))                   \
                {                                                                     \
-                       PointerRNA itemptr= rna_macro_iter.ptr;
+                       PointerRNA itemptr = rna_macro_iter.ptr;
 
 #define RNA_END                                                               \
                }                                                                     \
@@ -917,11 +917,11 @@ void RNA_collection_clear(PointerRNA *ptr, const char *name);
 #define RNA_PROP_BEGIN(sptr, itemptr, prop)                                   \
        {                                                                         \
                CollectionPropertyIterator rna_macro_iter;                            \
-               for(RNA_property_collection_begin(sptr, prop, &rna_macro_iter);       \
-                       rna_macro_iter.valid;                                             \
-                       RNA_property_collection_next(&rna_macro_iter))                    \
+               for (RNA_property_collection_begin(sptr, prop, &rna_macro_iter);      \
+                    rna_macro_iter.valid;                                            \
+                    RNA_property_collection_next(&rna_macro_iter))                   \
                {                                                                     \
-                       PointerRNA itemptr= rna_macro_iter.ptr;
+                       PointerRNA itemptr = rna_macro_iter.ptr;
 
 #define RNA_PROP_END                                                          \
                }                                                                     \
@@ -931,14 +931,14 @@ void RNA_collection_clear(PointerRNA *ptr, const char *name);
 #define RNA_STRUCT_BEGIN(sptr, prop)                                          \
        {                                                                         \
                CollectionPropertyIterator rna_macro_iter;                            \
-               for(RNA_property_collection_begin(                                    \
-                                       sptr,                                                     \
-                                       RNA_struct_iterator_property(sptr->type),                 \
-                                       &rna_macro_iter);                                         \
-                       rna_macro_iter.valid;                                             \
-                       RNA_property_collection_next(&rna_macro_iter))                    \
+               for (RNA_property_collection_begin(                                   \
+                            sptr,                                                    \
+                            RNA_struct_iterator_property(sptr->type),                \
+                            &rna_macro_iter);                                        \
+                    rna_macro_iter.valid;                                            \
+                    RNA_property_collection_next(&rna_macro_iter))                   \
                {                                                                     \
-                       PropertyRNA *prop= rna_macro_iter.ptr.data;
+                       PropertyRNA *prop = rna_macro_iter.ptr.data;
 
 #define RNA_STRUCT_END                                                        \
                }                                                                     \