[Bf-blender-cvs] [651fe243e6d] master: Cleanup: const warning

Campbell Barton noreply at git.blender.org
Fri Mar 12 17:15:20 CET 2021


Commit: 651fe243e6dcb31e9838f5816eaa00206309f59c
Author: Campbell Barton
Date:   Sat Mar 13 03:14:41 2021 +1100
Branches: master
https://developer.blender.org/rB651fe243e6dcb31e9838f5816eaa00206309f59c

Cleanup: const warning

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

M	source/blender/blenloader/intern/readfile.c

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

diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index e809b22cdbf..347ee1378a4 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -555,14 +555,14 @@ static void read_file_version(FileData *fd, Main *main)
   }
 }
 
-static bool blo_bhead_is_id(BHead *bhead)
+static bool blo_bhead_is_id(const BHead *bhead)
 {
   /* BHead codes are four bytes (like 'ENDB', 'TEST', etc.), but if the two most-significant bytes
    * are zero, the values actually indicate an ID type. */
   return bhead->code <= 0xFFFF;
 }
 
-static bool blo_bhead_is_id_valid_type(BHead *bhead)
+static bool blo_bhead_is_id_valid_type(const BHead *bhead)
 {
   if (!blo_bhead_is_id(bhead)) {
     return false;



More information about the Bf-blender-cvs mailing list