Make TXT_SetDesktopTitle parameter const

This commit is contained in:
Turo Lamminen 2018-03-03 00:09:33 +02:00
parent 8ec41dca6c
commit 83d0f369df
2 changed files with 2 additions and 2 deletions

View file

@ -220,7 +220,7 @@ static void DrawHelpIndicator(void)
TXT_DrawString("=Help ");
}
void TXT_SetDesktopTitle(char *title)
void TXT_SetDesktopTitle(const char *title)
{
free(desktop_title);
desktop_title = strdup(title);

View file

@ -39,7 +39,7 @@ int TXT_WindowKeyPress(txt_window_t *window, int c);
* @param title The title to display (UTF-8 format).
*/
void TXT_SetDesktopTitle(char *title);
void TXT_SetDesktopTitle(const char *title);
/**
* Exit the currently-running main loop and return from the