comparison src/hardcopy.c @ 25852:336e2d9924e6 v8.2.3460

patch 8.2.3460: some type casts are not needed Commit: https://github.com/vim/vim/commit/dfa5e464d459f84200a73d178f1ecefe75bbe511 Author: =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com> Date: Sat Oct 2 11:26:51 2021 +0100 patch 8.2.3460: some type casts are not needed Problem: Some type casts are not needed. Solution: Remove unnecessary type casts. (closes https://github.com/vim/vim/issues/8934)
author Bram Moolenaar <Bram@vim.org>
date Sat, 02 Oct 2021 12:30:05 +0200
parents 7334bf933510
children 06a137af96f8
comparison
equal deleted inserted replaced
25851:6dd46a7fa3cd 25852:336e2d9924e6
586 * not be a real printer - for example the engine might generate HTML or 586 * not be a real printer - for example the engine might generate HTML or
587 * PS.) 587 * PS.)
588 */ 588 */
589 if (mch_print_init(&settings, 589 if (mch_print_init(&settings,
590 curbuf->b_fname == NULL 590 curbuf->b_fname == NULL
591 ? (char_u *)buf_spname(curbuf) 591 ? buf_spname(curbuf)
592 : curbuf->b_sfname == NULL 592 : curbuf->b_sfname == NULL
593 ? curbuf->b_fname 593 ? curbuf->b_fname
594 : curbuf->b_sfname, 594 : curbuf->b_sfname,
595 eap->forceit) == FAIL) 595 eap->forceit) == FAIL)
596 return; 596 return;
1929 if (seen_title) 1929 if (seen_title)
1930 seen_all = TRUE; 1930 seen_all = TRUE;
1931 break; 1931 break;
1932 1932
1933 case PRT_DSC_ENDCOMMENTS_TYPE: 1933 case PRT_DSC_ENDCOMMENTS_TYPE:
1934 // Wont find title or resource after this comment, stop searching 1934 // Won't find title or resource after this comment, stop searching
1935 seen_all = TRUE; 1935 seen_all = TRUE;
1936 break; 1936 break;
1937 1937
1938 case PRT_DSC_MISC_TYPE: 1938 case PRT_DSC_MISC_TYPE:
1939 // Not interested in whatever comment this line had 1939 // Not interested in whatever comment this line had