Commit: e5079d4cf8f1038f9ca433901152b7faf644384a
Author: Campbell Barton
Date:   Tue May 17 03:07:40 2016 +1000
Branches: compositor-2016
https://developer.blender.org/rBe5079d4cf8f1038f9ca433901152b7faf644384a

Cleanup: use const args

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

M       source/blender/blenkernel/BKE_customdata.h
M       source/blender/blenkernel/intern/customdata.c

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

diff --git a/source/blender/blenkernel/BKE_customdata.h 
b/source/blender/blenkernel/BKE_customdata.h
index 17ad51a..2cdda34 100644
--- a/source/blender/blenkernel/BKE_customdata.h
+++ b/source/blender/blenkernel/BKE_customdata.h
@@ -244,7 +244,7 @@ void CustomData_free_elem(struct CustomData *data, int 
index, int count);
  */
 void CustomData_interp(
         const struct CustomData *source, struct CustomData *dest,
-        int *src_indices, float *weights, float *sub_weights,
+        const int *src_indices, const float *weights, const float *sub_weights,
         int count, int dest_index);
 void CustomData_bmesh_interp_n(
         struct CustomData *data, const void **src_blocks, const float *weights,
@@ -358,7 +358,7 @@ void CustomData_file_write_prepare(
         struct CustomDataLayer **r_write_layers, struct CustomDataLayer 
*write_layers_buff, size_t write_layers_size);
 
 /* query info over types */
-void CustomData_file_write_info(int type, const char **structname, int 
*structnum);
+void CustomData_file_write_info(int type, const char **r_struct_name, int 
*r_struct_num);
 int CustomData_sizeof(int type);
 
 /* get the name of a layer type */
diff --git a/source/blender/blenkernel/intern/customdata.c 
b/source/blender/blenkernel/intern/customdata.c
index ffc440e..5e44060 100644
--- a/source/blender/blenkernel/intern/customdata.c
+++ b/source/blender/blenkernel/intern/customdata.c
@@ -2281,7 +2281,7 @@ void CustomData_free_elem(CustomData *data, int index, 
int count)
 #define SOURCE_BUF_SIZE 100
 
 void CustomData_interp(const CustomData *source, CustomData *dest,
-                       int *src_indices, float *weights, float *sub_weights,
+                       const int *src_indices, const float *weights, const 
float *sub_weights,
                        int count, int dest_index)
 {
        int src_i, dest_i;
@@ -3309,12 +3309,12 @@ void CustomData_from_bmesh_block(const CustomData 
*source, CustomData *dest,
 
 }
 
-void CustomData_file_write_info(int type, const char **structname, int 
*structnum)
+void CustomData_file_write_info(int type, const char **r_struct_name, int 
*r_struct_num)
 {
        const LayerTypeInfo *typeInfo = layerType_getInfo(type);
 
-       *structname = typeInfo->structname;
-       *structnum = typeInfo->structnum;
+       *r_struct_name = typeInfo->structname;
+       *r_struct_num = typeInfo->structnum;
 }
 
 /**

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to