aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2016-08-19 12:21:50 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2016-08-24 11:04:22 +0200
commit6d8a509e510e257c98ae67ec702f51e0b5197f89 (patch)
tree4d8d844d79ae5da1efa8f8ca965fd9e80d76c764 /src/nvim/quickfix.c
parent4d253b4df5cb19715007d1a2078841862704a057 (diff)
downloadrneovim-6d8a509e510e257c98ae67ec702f51e0b5197f89.tar.gz
rneovim-6d8a509e510e257c98ae67ec702f51e0b5197f89.tar.bz2
rneovim-6d8a509e510e257c98ae67ec702f51e0b5197f89.zip
eval: remove (char_u *) in constant get_dict_(string|number) parameters
Remove redundant item availibility checks when constructing complete items from a dict.
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r--src/nvim/quickfix.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c
index 698f05c029..20bd0a62b8 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -3505,15 +3505,15 @@ int set_errorlist(win_T *wp, list_T *list, int action, char_u *title)
if (d == NULL)
continue;
- char_u *filename = get_dict_string(d, (char_u *)"filename", true);
- int bufnum = (int)get_dict_number(d, (char_u *)"bufnr");
- long lnum = get_dict_number(d, (char_u *)"lnum");
- int col = (int)get_dict_number(d, (char_u *)"col");
- char_u vcol = (char_u)get_dict_number(d, (char_u *)"vcol");
- int nr = (int)get_dict_number(d, (char_u *)"nr");
- char_u *type = get_dict_string(d, (char_u *)"type", true);
- char_u *pattern = get_dict_string(d, (char_u *)"pattern", true);
- char_u *text = get_dict_string(d, (char_u *)"text", true);
+ char_u *filename = get_dict_string(d, "filename", true);
+ int bufnum = (int)get_dict_number(d, "bufnr");
+ long lnum = get_dict_number(d, "lnum");
+ int col = (int)get_dict_number(d, "col");
+ char_u vcol = (char_u)get_dict_number(d, "vcol");
+ int nr = (int)get_dict_number(d, "nr");
+ char_u *type = get_dict_string(d, "type", true);
+ char_u *pattern = get_dict_string(d, "pattern", true);
+ char_u *text = get_dict_string(d, "text", true);
if (text == NULL) {
text = vim_strsave((char_u *)"");
}