1
0
forked from aniani/vim

patch 8.2.3460: some type casts are not needed

Problem:    Some type casts are not needed.
Solution:   Remove unnecessary type casts. (closes #8934)
This commit is contained in:
=?UTF-8?q?Dundar=20G=C3=B6c?=
2021-10-02 11:26:51 +01:00
committed by Bram Moolenaar
parent 51491adfa8
commit dfa5e464d4
9 changed files with 20 additions and 18 deletions

View File

@@ -588,7 +588,7 @@ ex_hardcopy(exarg_T *eap)
*/
if (mch_print_init(&settings,
curbuf->b_fname == NULL
? (char_u *)buf_spname(curbuf)
? buf_spname(curbuf)
: curbuf->b_sfname == NULL
? curbuf->b_fname
: curbuf->b_sfname,
@@ -1931,7 +1931,7 @@ prt_open_resource(struct prt_ps_resource_S *resource)
break;
case PRT_DSC_ENDCOMMENTS_TYPE:
// Wont find title or resource after this comment, stop searching
// Won't find title or resource after this comment, stop searching
seen_all = TRUE;
break;