refactor: reduce number of unique char casts (#15995)

This commit is contained in:
dundargoc
2021-10-12 17:52:54 +02:00
committed by GitHub
parent 64f0fdc682
commit 649b3160a1
29 changed files with 133 additions and 140 deletions

View File

@@ -192,13 +192,13 @@ char_u *ga_concat_strings(const garray_T *gap) FUNC_ATTR_NONNULL_RET
///
/// @param gap
/// @param s
void ga_concat(garray_T *gap, const char_u *restrict s)
void ga_concat(garray_T *gap, const char *restrict s)
{
if (s == NULL) {
return;
}
ga_concat_len(gap, (const char *restrict)s, strlen((char *)s));
ga_concat_len(gap, s, strlen((char *)s));
}
/// Concatenate a string to a growarray which contains characters