Make TXT_SetWindowHelpURL help_url parameter const

This commit is contained in:
Turo Lamminen 2018-03-13 19:44:25 +02:00
parent 232c968ed9
commit 94d85c51b0
2 changed files with 2 additions and 2 deletions

View file

@ -508,7 +508,7 @@ void TXT_SetWindowFocus(txt_window_t *window, int focused)
TXT_SetWidgetFocus(window, focused);
}
void TXT_SetWindowHelpURL(txt_window_t *window, char *help_url)
void TXT_SetWindowHelpURL(txt_window_t *window, const char *help_url)
{
window->help_url = help_url;
}

View file

@ -207,7 +207,7 @@ txt_window_t *TXT_MessageBox(const char *title, const char *message, ...);
* window, or NULL to set no help for this window.
*/
void TXT_SetWindowHelpURL(txt_window_t *window, char *help_url);
void TXT_SetWindowHelpURL(txt_window_t *window, const char *help_url);
/**
* Open the help URL for the given window, if one is set.