Mercurial > vim
changeset 18849:b77ef4b8af7c v8.1.2411
patch 8.1.2411: function argument copied unnecessarily
Commit: https://github.com/vim/vim/commit/1b03a193b3394597e4ed86aeea1e1b2c60ae9ad2
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Dec 8 17:08:29 2019 +0100
patch 8.1.2411: function argument copied unnecessarily
Problem: Function argument copied unnecessarily.
Solution: Use the argument directly.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 08 Dec 2019 17:15:04 +0100 |
parents | a0e0f0256d0b |
children | cdf752086b54 |
files | src/ex_docmd.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -3412,13 +3412,12 @@ addr_error(cmd_addr_T addr_type) get_address( exarg_T *eap UNUSED, 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 silent, // no errors or side effects int to_other_file, // flag: may jump to other file int address_count UNUSED) // 1 for first address, >1 after comma { - cmd_addr_T addr_type = addr_type_arg; int c; int i; long n;