ref: 898442b1015f2300751eb465d4d0eb577aa2a633
parent: 4b48cd7f9d810955352cb03fab9cfa39f747c68b
author: Turo Lamminen <[email protected]>
date: Tue Mar 6 13:58:26 EST 2018
Make TXT_NewButton2 label parameter const
--- a/textscreen/txt_button.c
+++ b/textscreen/txt_button.c
@@ -113,7 +113,7 @@
// Button with a callback set automatically
-txt_button_t *TXT_NewButton2(char *label, TxtWidgetSignalFunc func,
+txt_button_t *TXT_NewButton2(const char *label, TxtWidgetSignalFunc func,
void *user_data)
{
txt_button_t *button;
--- a/textscreen/txt_button.h
+++ b/textscreen/txt_button.h
@@ -57,7 +57,7 @@
* @return Pointer to the new button widget.
*/
-txt_button_t *TXT_NewButton2(char *label, TxtWidgetSignalFunc func,
+txt_button_t *TXT_NewButton2(const char *label, TxtWidgetSignalFunc func,
void *user_data);
/**