Make TXT_NewCheckBox label parameter const

This commit is contained in:
Turo Lamminen 2018-03-06 19:14:45 +02:00
parent 898442b101
commit 27a28b8ad9
2 changed files with 2 additions and 2 deletions

View file

@ -116,7 +116,7 @@ txt_widget_class_t txt_checkbox_class =
NULL, NULL,
}; };
txt_checkbox_t *TXT_NewCheckBox(char *label, int *variable) txt_checkbox_t *TXT_NewCheckBox(const char *label, int *variable)
{ {
txt_checkbox_t *checkbox; txt_checkbox_t *checkbox;

View file

@ -55,7 +55,7 @@ struct txt_checkbox_s
* @return Pointer to the new checkbox. * @return Pointer to the new checkbox.
*/ */
txt_checkbox_t *TXT_NewCheckBox(char *label, int *variable); txt_checkbox_t *TXT_NewCheckBox(const char *label, int *variable);
/** /**
* Create a new inverted checkbox. * Create a new inverted checkbox.