[Bf-blender-cvs] [9f05fe0] master: Cleanup: use const qualifier in makesdna

Campbell Barton noreply at git.blender.org
Thu Jan 14 03:08:56 CET 2016


Commit: 9f05fe00a024879379f9be085b58be2d816a7eb5
Author: Campbell Barton
Date:   Thu Jan 14 13:00:49 2016 +1100
Branches: master
https://developer.blender.org/rB9f05fe00a024879379f9be085b58be2d816a7eb5

Cleanup: use const qualifier in makesdna

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

M	source/blender/makesdna/intern/makesdna.c

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

diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c
index d1744c6..0bdd428 100644
--- a/source/blender/makesdna/intern/makesdna.c
+++ b/source/blender/makesdna/intern/makesdna.c
@@ -191,7 +191,7 @@ static int preprocess_include(char *maindata, int len);
 /**
  * Scan this file for serializable types.
  */ 
-static int convert_include(char *filename);
+static int convert_include(const char *filename);
 
 /**
  * Determine how many bytes are needed for an array.
@@ -515,7 +515,7 @@ static int preprocess_include(char *maindata, int len)
 	return newlen;
 }
 
-static void *read_file_data(char *filename, int *r_len)
+static void *read_file_data(const char *filename, int *r_len)
 {
 #ifdef WIN32
 	FILE *fp = fopen(filename, "rb");
@@ -556,7 +556,7 @@ static void *read_file_data(char *filename, int *r_len)
 	return data;
 }
 
-static int convert_include(char *filename)
+static int convert_include(const char *filename)
 {
 	/* read include file, skip structs with a '#' before it.
 	 * store all data in temporal arrays.




More information about the Bf-blender-cvs mailing list