vim-patch:8.1.2411: function argument copied unnecessarily

Problem:    Function argument copied unnecessarily.
Solution:   Use the argument directly.
1b03a193b3
This commit is contained in:
Jan Edmund Lazo
2021-01-01 04:55:11 -05:00
parent d7b577d6ab
commit 3847b58a13

View File

@@ -3730,14 +3730,13 @@ char_u *skip_range(
// Return MAXLNUM when no Ex address was found. // Return MAXLNUM when no Ex address was found.
static linenr_T get_address(exarg_T *eap, static linenr_T get_address(exarg_T *eap,
char_u **ptr, char_u **ptr,
cmd_addr_T addr_type_arg, cmd_addr_T addr_type,
int skip, // only skip the address, don't use it int skip, // only skip the address, don't use it
bool silent, // no errors or side effects bool silent, // no errors or side effects
int to_other_file, // flag: may jump to other file int to_other_file, // flag: may jump to other file
int address_count) // 1 for first, >1 after comma int address_count) // 1 for first, >1 after comma
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_NONNULL_ALL
{ {
const cmd_addr_T addr_type = addr_type_arg;
int c; int c;
int i; int i;
long n; long n;