From 642fce3548d3194b7da880feae335020f9c22bcf Mon Sep 17 00:00:00 2001 From: Timothy Stack Date: Mon, 7 Dec 2020 09:04:14 -0800 Subject: [PATCH] [build] minor fixes --- src/attr_line.cc | 2 +- src/textview_curses.cc | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/attr_line.cc b/src/attr_line.cc index 642c74e6..d2ff7efd 100644 --- a/src/attr_line.cc +++ b/src/attr_line.cc @@ -245,7 +245,7 @@ void attr_line_t::apply_hide() sattr.sa_range.length() > 3) { struct line_range &lr = sattr.sa_range; - for_each(sa.begin(), sa.end(), [&] (string_attr &attr) { + std::for_each(sa.begin(), sa.end(), [&] (string_attr &attr) { if (attr.sa_type == &view_curses::VC_STYLE && lr.contains(attr.sa_range)) { attr.sa_type = &SA_REMOVED; diff --git a/src/textview_curses.cc b/src/textview_curses.cc index 4b6bf3b1..9dd1adba 100644 --- a/src/textview_curses.cc +++ b/src/textview_curses.cc @@ -378,7 +378,6 @@ bool textview_curses::handle_mouse(mouse_event &me) void textview_curses::textview_value_for_row(vis_line_t row, attr_line_t &value_out) { - view_colors &vc = view_colors::singleton(); bookmark_vector &user_marks = this->tc_bookmarks[&BM_USER]; string_attrs_t &sa = value_out.get_attrs(); string &str = value_out.get_string();