mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 22:38:16 +00:00
option: use char* for set_string_option_direct()
"name" param was cast to (const char *). All calls to set_string_option_direct() cast 1st arg from (char *) to (char_u *). Remove these useless casts.
This commit is contained in:
@@ -3236,7 +3236,7 @@ void maketitle(void)
|
||||
0, maxlen, NULL, NULL);
|
||||
title_str = (char_u *)buf;
|
||||
if (called_emsg) {
|
||||
set_string_option_direct((char_u *)"titlestring", -1, (char_u *)"",
|
||||
set_string_option_direct("titlestring", -1, (char_u *)"",
|
||||
OPT_FREE, SID_ERROR);
|
||||
}
|
||||
called_emsg |= save_called_emsg;
|
||||
@@ -3346,7 +3346,7 @@ void maketitle(void)
|
||||
p_iconstring, use_sandbox,
|
||||
0, 0, NULL, NULL);
|
||||
if (called_emsg) {
|
||||
set_string_option_direct((char_u *)"iconstring", -1,
|
||||
set_string_option_direct("iconstring", -1,
|
||||
(char_u *)"", OPT_FREE, SID_ERROR);
|
||||
}
|
||||
called_emsg |= save_called_emsg;
|
||||
|
Reference in New Issue
Block a user