Make TXT_SetLabel value parameter const

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

View file

@ -113,7 +113,7 @@ txt_widget_class_t txt_label_class =
NULL,
};
void TXT_SetLabel(txt_label_t *label, char *value)
void TXT_SetLabel(txt_label_t *label, const char *value)
{
char *p;
unsigned int y;

View file

@ -58,7 +58,7 @@ txt_label_t *TXT_NewLabel(char *label);
* @param value The string to display (UTF-8 format).
*/
void TXT_SetLabel(txt_label_t *label, char *value);
void TXT_SetLabel(txt_label_t *label, const char *value);
/**
* Set the background color of a label widget.