Make TXT_SetSeparatorLabel label parameter const
This commit is contained in:
parent
94d85c51b0
commit
a6fbae76cd
2 changed files with 2 additions and 2 deletions
|
|
@ -73,7 +73,7 @@ static void TXT_SeparatorDestructor(TXT_UNCAST_ARG(separator))
|
|||
free(separator->label);
|
||||
}
|
||||
|
||||
void TXT_SetSeparatorLabel(txt_separator_t *separator, char *label)
|
||||
void TXT_SetSeparatorLabel(txt_separator_t *separator, const char *label)
|
||||
{
|
||||
free(separator->label);
|
||||
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ txt_separator_t *TXT_NewSeparator(char *label);
|
|||
* @param label The new label (UTF-8 format).
|
||||
*/
|
||||
|
||||
void TXT_SetSeparatorLabel(txt_separator_t *separator, char *label);
|
||||
void TXT_SetSeparatorLabel(txt_separator_t *separator, const char *label);
|
||||
|
||||
#endif /* #ifndef TXT_SEPARATOR_H */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue