[Bf-blender-cvs] [3a5562151fd] master: Cleanup: Animation: mark function parameter as `const`

Sybren A. Stüvel noreply at git.blender.org
Tue Dec 17 15:24:31 CET 2019


Commit: 3a5562151fdfc3c1531350ffd99534b50fbb0f37
Author: Sybren A. Stüvel
Date:   Tue Dec 17 15:20:53 2019 +0100
Branches: master
https://developer.blender.org/rB3a5562151fdfc3c1531350ffd99534b50fbb0f37

Cleanup: Animation: mark function parameter as `const`

`fcurve_path_rename(..., rna_path, ...)` doesn't change `rna_path` at all,
so it can be marked as `const char *`.

No functional changes.

===================================================================

M	source/blender/editors/curve/editcurve.c

===================================================================

diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c
index af2d92533c3..f18b6e91d0f 100644
--- a/source/blender/editors/curve/editcurve.c
+++ b/source/blender/editors/curve/editcurve.c
@@ -908,7 +908,7 @@ static bool curve_is_animated(Curve *cu)
 
 static void fcurve_path_rename(AnimData *adt,
                                const char *orig_rna_path,
-                               char *rna_path,
+                               const char *rna_path,
                                ListBase *orig_curves,
                                ListBase *curves)
 {



More information about the Bf-blender-cvs mailing list