Make TXT_SetRadioButtonLabel value parameter const
This commit is contained in:
parent
569787da58
commit
71ea0f904f
2 changed files with 2 additions and 2 deletions
|
|
@ -135,7 +135,7 @@ txt_radiobutton_t *TXT_NewRadioButton(char *label, int *variable, int value)
|
|||
return radiobutton;
|
||||
}
|
||||
|
||||
void TXT_SetRadioButtonLabel(txt_radiobutton_t *radiobutton, char *value)
|
||||
void TXT_SetRadioButtonLabel(txt_radiobutton_t *radiobutton, const char *value)
|
||||
{
|
||||
free(radiobutton->label);
|
||||
radiobutton->label = strdup(value);
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ txt_radiobutton_t *TXT_NewRadioButton(char *label, int *variable, int value);
|
|||
* @param value The new label (UTF-8 format).
|
||||
*/
|
||||
|
||||
void TXT_SetRadioButtonLabel(txt_radiobutton_t *radiobutton, char *value);
|
||||
void TXT_SetRadioButtonLabel(txt_radiobutton_t *radiobutton, const char *value);
|
||||
|
||||
#endif /* #ifndef TXT_RADIOBUTTON_H */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue