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>2021-06-30 09:37:14 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-06-30 09:42:19 +0300
commit501d2443d03cce18985fab3ffad5d23238748f3e (patch)
tree1d127d4e4c6d82fc85feedc9826dd5619174e346 /source/blender/blenkernel/intern/fcurve.c
parentdf9597cfba78deb40009553ab9dcf09c21edd434 (diff)
Cleanup: use const arguments for accessor functions
Diffstat (limited to 'source/blender/blenkernel/intern/fcurve.c')
-rw-r--r--source/blender/blenkernel/intern/fcurve.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/source/blender/blenkernel/intern/fcurve.c b/source/blender/blenkernel/intern/fcurve.c
index 18dac2fb679..7fe7b38e120 100644
--- a/source/blender/blenkernel/intern/fcurve.c
+++ b/source/blender/blenkernel/intern/fcurve.c
@@ -510,8 +510,11 @@ FCurve *BKE_fcurve_find_by_rna_context_ui(bContext *C,
* with optional argument for precision required.
* Returns the index to insert at (data already at that index will be offset if replace is 0)
*/
-static int BKE_fcurve_bezt_binarysearch_index_ex(
- BezTriple array[], float frame, int arraylen, float threshold, bool *r_replace)
+static int BKE_fcurve_bezt_binarysearch_index_ex(const BezTriple array[],
+ const float frame,
+ const int arraylen,
+ const float threshold,
+ bool *r_replace)
{
int start = 0, end = arraylen;
int loopbreaker = 0, maxloop = arraylen * 2;
@@ -597,9 +600,9 @@ static int BKE_fcurve_bezt_binarysearch_index_ex(
/* Binary search algorithm for finding where to insert BezTriple. (for use by insert_bezt_fcurve)
* Returns the index to insert at (data already at that index will be offset if replace is 0)
*/
-int BKE_fcurve_bezt_binarysearch_index(BezTriple array[],
- float frame,
- int arraylen,
+int BKE_fcurve_bezt_binarysearch_index(const BezTriple array[],
+ const float frame,
+ const int arraylen,
bool *r_replace)
{
/* This is just a wrapper which uses the default threshold. */