[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [50370] trunk/blender/source/blender/ editors: fix for error in `const` use in last commit.

Campbell Barton ideasman42 at gmail.com
Tue Sep 4 03:35:06 CEST 2012


Revision: 50370
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=50370
Author:   campbellbarton
Date:     2012-09-04 01:35:02 +0000 (Tue, 04 Sep 2012)
Log Message:
-----------
fix for error in `const` use in last commit.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/include/UI_interface.h
    trunk/blender/source/blender/editors/interface/interface.c

Modified: trunk/blender/source/blender/editors/include/UI_interface.h
===================================================================
--- trunk/blender/source/blender/editors/include/UI_interface.h	2012-09-04 01:23:50 UTC (rev 50369)
+++ trunk/blender/source/blender/editors/include/UI_interface.h	2012-09-04 01:35:02 UTC (rev 50370)
@@ -527,7 +527,7 @@
 	BUT_GET_TIP,
 	BUT_GET_RNA_TIP,
 	BUT_GET_RNAENUM_TIP,
-	BUT_GET_OP_KEYMAP,
+	BUT_GET_OP_KEYMAP
 };
 
 typedef struct uiStringInfo {
@@ -538,7 +538,7 @@
 /* Note: Expects pointers to uiStringInfo structs as parameters.
  *       Will fill them with translated strings, when possible.
  *       Strings in uiStringInfo must be MEM_freeN'ed by caller. */
-void uiButGetStrInfo(struct bContext *C, uiBut *but, const int nbr, ...);
+void uiButGetStrInfo(struct bContext *C, uiBut *but, int nbr, ...);
 
 /* Edit i18n stuff. */
 /* Name of the main py op from i18n addon. */
@@ -624,7 +624,9 @@
 
 void    uiButSetCompleteFunc(uiBut *but,        uiButCompleteFunc func, void *arg);
 
-void    uiBlockSetDrawExtraFunc(uiBlock *block, void (*func)(const struct bContext *C, void *, void *, void *, struct rcti *rect), void *arg1, void *arg2);
+void    uiBlockSetDrawExtraFunc(uiBlock *block,
+                                void (*func)(const struct bContext *C, void *, void *, void *, struct rcti *rect),
+                                void *arg1, void *arg2);
 
 void uiButSetFocusOnEnter(struct wmWindow *win, uiBut *but);
 

Modified: trunk/blender/source/blender/editors/interface/interface.c
===================================================================
--- trunk/blender/source/blender/editors/interface/interface.c	2012-09-04 01:23:50 UTC (rev 50369)
+++ trunk/blender/source/blender/editors/interface/interface.c	2012-09-04 01:35:02 UTC (rev 50370)
@@ -3707,7 +3707,7 @@
 	wm_event_add(win, &event);
 }
 
-void uiButGetStrInfo(bContext *C, uiBut *but, const int nbr, ...)
+void uiButGetStrInfo(bContext *C, uiBut *but, int nbr, ...)
 {
 	va_list args;
 




More information about the Bf-blender-cvs mailing list