Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-03-25 09:58:58 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-03-25 09:58:58 +0300
commit2bc791437e3b8e42c1369daf15c72934474b1e73 (patch)
treef2202c3753c8288bea47d3c0edd10bcf01cdf339 /source/blender/python/intern/bpy_rna_array.c
parentc3764fe1e80670cd578df7bbc5c37c267e81013a (diff)
Cleanup: use 'r_' prefix for output arguments
Also pass some args as 'const'.
Diffstat (limited to 'source/blender/python/intern/bpy_rna_array.c')
-rw-r--r--source/blender/python/intern/bpy_rna_array.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/python/intern/bpy_rna_array.c b/source/blender/python/intern/bpy_rna_array.c
index 29e3a07625a..1e5b53b819e 100644
--- a/source/blender/python/intern/bpy_rna_array.c
+++ b/source/blender/python/intern/bpy_rna_array.c
@@ -262,7 +262,7 @@ static int validate_array_length(PyObject *rvalue,
PointerRNA *ptr,
PropertyRNA *prop,
int lvalue_dim,
- int *totitem,
+ int *r_totitem,
const char *error_prefix)
{
int dimsize[MAX_ARRAY_DIMENSION];
@@ -296,7 +296,7 @@ static int validate_array_length(PyObject *rvalue,
return -1;
}
#else
- *totitem = tot;
+ *r_totitem = tot;
return 0;
#endif
@@ -346,7 +346,7 @@ static int validate_array_length(PyObject *rvalue,
}
}
- *totitem = len;
+ *r_totitem = len;
return 0;
}
@@ -357,7 +357,7 @@ static int validate_array(PyObject *rvalue,
int lvalue_dim,
ItemTypeCheckFunc check_item_type,
const char *item_type_str,
- int *totitem,
+ int *r_totitem,
const char *error_prefix)
{
int dimsize[MAX_ARRAY_DIMENSION];
@@ -405,7 +405,7 @@ static int validate_array(PyObject *rvalue,
return -1;
}
else {
- *totitem = dimsize[0] * dimsize[1];
+ *r_totitem = dimsize[0] * dimsize[1];
return 0;
}
}
@@ -425,7 +425,7 @@ static int validate_array(PyObject *rvalue,
return -1;
}
- return validate_array_length(rvalue, ptr, prop, lvalue_dim, totitem, error_prefix);
+ return validate_array_length(rvalue, ptr, prop, lvalue_dim, r_totitem, error_prefix);
}
}