style cleanup: space around for loop wrappers
authorCampbell Barton <ideasman42@gmail.com>
Sat, 24 Aug 2013 10:05:29 +0000 (10:05 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 24 Aug 2013 10:05:29 +0000 (10:05 +0000)
source/blender/editors/gpencil/gpencil_paint.c
source/blender/editors/mesh/editmesh_tools.c
source/blender/editors/space_node/node_add.c
source/blender/editors/space_node/node_relationships.c
source/blender/makesrna/intern/rna_access.c
source/blender/windowmanager/intern/wm_operators.c

index 4c5727f16ed8c79edc06fd866d9d63a54a830b8a..da8325544436dd47812da76669a59fd830dc9564 100644 (file)
@@ -1679,7 +1679,7 @@ static int gpencil_draw_exec(bContext *C, wmOperator *op)
        /* loop over the stroke RNA elements recorded (i.e. progress of mouse movement),
         * setting the relevant values in context at each step, then applying
         */
-       RNA_BEGIN(op->ptr, itemptr, "stroke")
+       RNA_BEGIN (op->ptr, itemptr, "stroke")
        {
                float mousef[2];
                
index 71d220153e3b7c2fd885f80b08c1de844e6a16d3..d23cee407b6edf6d659ebf9d2168b50f0956c804 100644 (file)
@@ -2292,7 +2292,7 @@ static int edbm_knife_cut_exec(bContext *C, wmOperator *op)
        mouse_path = MEM_mallocN(len * sizeof(*mouse_path), __func__);
 
        /* get the cut curve */
-       RNA_BEGIN(op->ptr, itemptr, "path")
+       RNA_BEGIN (op->ptr, itemptr, "path")
        {
                RNA_float_get_array(&itemptr, "loc", (float *)&mouse_path[len]);
        }
index c9618daa7c5e678b509a9af716573f51809918a3..45b0272576aa8973a675399b4e4cc04bb6b32112 100644 (file)
@@ -215,7 +215,7 @@ static int add_reroute_exec(bContext *C, wmOperator *op)
        int i = 0;
        
        /* Get the cut path */
-       RNA_BEGIN(op->ptr, itemptr, "path")
+       RNA_BEGIN (op->ptr, itemptr, "path")
        {
                float loc[2];
 
index 244b222811ec81ab17e8670af2d97a7c1466a346..297c9c5c86dff92e021bb66dc6f8582eed44ff53 100644 (file)
@@ -762,7 +762,7 @@ static int cut_links_exec(bContext *C, wmOperator *op)
        float mcoords[256][2];
        int i = 0;
 
-       RNA_BEGIN(op->ptr, itemptr, "path")
+       RNA_BEGIN (op->ptr, itemptr, "path")
        {
                float loc[2];
 
index f3e561cde0aeb28e3a722e76f8f89719f065213c..1debcea386b8e8d8be70385c0988a9d4324f8eae 100644 (file)
@@ -650,7 +650,7 @@ static PropertyRNA *RNA_struct_find_nested(PointerRNA *ptr, StructRNA *srna)
 {
        PropertyRNA *prop = NULL;
 
-       RNA_STRUCT_BEGIN(ptr, iprop)
+       RNA_STRUCT_BEGIN (ptr, iprop)
        {
                /* This assumes that there can only be one user of this nested struct */
                if (RNA_property_pointer_type(ptr, iprop) == srna) {
@@ -673,7 +673,7 @@ bool RNA_struct_contains_property(PointerRNA *ptr, PropertyRNA *prop_test)
 
        iterprop = RNA_struct_iterator_property(ptr->type);
 
-       RNA_PROP_BEGIN(ptr, itemptr, iterprop)
+       RNA_PROP_BEGIN (ptr, itemptr, iterprop)
        {
                /* PropertyRNA *prop = itemptr.data; */
                if (prop_test == (PropertyRNA *)itemptr.data) {
@@ -721,7 +721,7 @@ FunctionRNA *RNA_struct_find_function(StructRNA *srna, const char *identifier)
 
        func = NULL;
 
-       RNA_PROP_BEGIN(&tptr, funcptr, iterprop)
+       RNA_PROP_BEGIN (&tptr, funcptr, iterprop)
        {
                if (strcmp(identifier, RNA_function_identifier(funcptr.data)) == 0) {
                        func = funcptr.data;
@@ -3329,7 +3329,7 @@ static int rna_raw_access(ReportList *reports, PointerRNA *ptr, PropertyRNA *pro
                }
                /* no item property pointer, can still be id property, or
                 * property of a type derived from the collection pointer type */
-               RNA_PROP_BEGIN(ptr, itemptr, prop)
+               RNA_PROP_BEGIN (ptr, itemptr, prop)
                {
                        if (itemptr.data) {
                                if (itemprop) {
@@ -4982,7 +4982,7 @@ static char *rna_pointer_as_string__idprop(bContext *C, PointerRNA *ptr)
        
        BLI_dynstr_append(dynstr, "{");
        
-       RNA_STRUCT_BEGIN(ptr, prop)
+       RNA_STRUCT_BEGIN (ptr, prop)
        {
                propname = RNA_property_identifier(prop);
                
@@ -5049,7 +5049,7 @@ char *RNA_pointer_as_string_keywords_ex(bContext *C, PointerRNA *ptr, PointerRNA
        PropertyRNA *prop_default;
        char *buf_default;
 
-       RNA_PROP_BEGIN(ptr, propptr, iterprop)
+       RNA_PROP_BEGIN (ptr, propptr, iterprop)
        {
                prop = propptr.data;
 
index f1a9f6dc007b9843d22879e02b2fbae96b24f614..7af69670cd40a061fbb8eea8d9782810b8ec040b 100644 (file)
@@ -796,7 +796,7 @@ void WM_operator_properties_alloc(PointerRNA **ptr, IDProperty **properties, con
 
 void WM_operator_properties_sanitize(PointerRNA *ptr, const bool no_context)
 {
-       RNA_STRUCT_BEGIN(ptr, prop)
+       RNA_STRUCT_BEGIN (ptr, prop)
        {
                switch (RNA_property_type(prop)) {
                        case PROP_ENUM:
@@ -833,7 +833,7 @@ void WM_operator_properties_sanitize(PointerRNA *ptr, const bool no_context)
 int WM_operator_properties_default(PointerRNA *ptr, const bool do_update)
 {
        int is_change = FALSE;
-       RNA_STRUCT_BEGIN(ptr, prop)
+       RNA_STRUCT_BEGIN (ptr, prop)
        {
                switch (RNA_property_type(prop)) {
                        case PROP_POINTER:
@@ -866,7 +866,7 @@ void WM_operator_properties_reset(wmOperator *op)
                PropertyRNA *iterprop;
                iterprop = RNA_struct_iterator_property(op->type->srna);
 
-               RNA_PROP_BEGIN(op->ptr, itemptr, iterprop)
+               RNA_PROP_BEGIN (op->ptr, itemptr, iterprop)
                {
                        PropertyRNA *prop = itemptr.data;
 
@@ -901,7 +901,7 @@ int WM_operator_view3d_distance_invoke(struct bContext *C, struct wmOperator *op
 
        /* always run, so the values are initialized,
         * otherwise we may get differ behavior when (dia != 1.0) */
-       RNA_STRUCT_BEGIN(op->ptr, prop)
+       RNA_STRUCT_BEGIN (op->ptr, prop)
        {
                if (RNA_property_type(prop) == PROP_FLOAT) {
                        PropertySubType pstype = RNA_property_subtype(prop);
@@ -2253,7 +2253,7 @@ static int wm_link_append_exec(bContext *C, wmOperator *op)
                BLO_library_append_named_part_ex(C, mainl, &bh, name, idcode, flag);
        }
        else {
-               RNA_BEGIN(op->ptr, itemptr, "files")
+               RNA_BEGIN (op->ptr, itemptr, "files")
                {
                        RNA_string_get(&itemptr, "name", name);
                        BLO_library_append_named_part_ex(C, mainl, &bh, name, idcode, flag);
@@ -3199,7 +3199,7 @@ const int (*WM_gesture_lasso_path_to_array(bContext *UNUSED(C), wmOperator *op,
                        int i = 0;
                        mcords = MEM_mallocN(sizeof(int) * 2 * len, __func__);
 
-                       RNA_PROP_BEGIN(op->ptr, itemptr, prop)
+                       RNA_PROP_BEGIN (op->ptr, itemptr, prop)
                        {
                                float loc[2];
 
@@ -3225,7 +3225,7 @@ const int (*WM_gesture_lasso_path_to_array(bContext *UNUSED(C), wmOperator *op,
 
 static int gesture_lasso_exec(bContext *C, wmOperator *op)
 {
-       RNA_BEGIN(op->ptr, itemptr, "path")
+       RNA_BEGIN (op->ptr, itemptr, "path")
        {
                float loc[2];