[Bf-blender-cvs] [f1f8859ad52] master: Cleanup: const cast

Campbell Barton noreply at git.blender.org
Fri Dec 21 22:17:55 CET 2018


Commit: f1f8859ad52bd274f96c965457d4f5aa999366e9
Author: Campbell Barton
Date:   Sat Dec 22 08:14:41 2018 +1100
Branches: master
https://developer.blender.org/rBf1f8859ad52bd274f96c965457d4f5aa999366e9

Cleanup: const cast

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

M	source/blender/editors/include/ED_screen.h
M	source/blender/editors/screen/screen_user_menu.c

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

diff --git a/source/blender/editors/include/ED_screen.h b/source/blender/editors/include/ED_screen.h
index 35f5000f4b7..4adf040f1ea 100644
--- a/source/blender/editors/include/ED_screen.h
+++ b/source/blender/editors/include/ED_screen.h
@@ -310,7 +310,7 @@ bool ED_operator_camera(struct bContext *C);
 
 /* screen_user_menu.c */
 
-bUserMenu **ED_screen_user_menus_find(struct bContext *C, uint *r_len);
+bUserMenu **ED_screen_user_menus_find(const struct bContext *C, uint *r_len);
 struct bUserMenu *ED_screen_user_menu_ensure(struct bContext *C);
 
 
diff --git a/source/blender/editors/screen/screen_user_menu.c b/source/blender/editors/screen/screen_user_menu.c
index fe2b144611e..399cbb1057d 100644
--- a/source/blender/editors/screen/screen_user_menu.c
+++ b/source/blender/editors/screen/screen_user_menu.c
@@ -62,7 +62,7 @@
 /** \name Menu Type
  * \{ */
 
-bUserMenu **ED_screen_user_menus_find(bContext *C, uint *r_len)
+bUserMenu **ED_screen_user_menus_find(const bContext *C, uint *r_len)
 {
 	SpaceLink *sl = CTX_wm_space_data(C);
 	const char *context = CTX_data_mode_string(C);



More information about the Bf-blender-cvs mailing list