Make TXT_NewLabel parameter const

This commit is contained in:
Turo Lamminen 2018-03-13 19:19:14 +02:00
parent 50e55526b3
commit 6283e91fbd
2 changed files with 2 additions and 2 deletions

View file

@ -168,7 +168,7 @@ void TXT_SetLabel(txt_label_t *label, const char *value)
} }
} }
txt_label_t *TXT_NewLabel(char *text) txt_label_t *TXT_NewLabel(const char *text)
{ {
txt_label_t *label; txt_label_t *label;

View file

@ -49,7 +49,7 @@ struct txt_label_s
* @return Pointer to the new label widget. * @return Pointer to the new label widget.
*/ */
txt_label_t *TXT_NewLabel(char *label); txt_label_t *TXT_NewLabel(const char *label);
/** /**
* Set the string displayed in a label widget. * Set the string displayed in a label widget.