diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-03-16 23:08:10 +0000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-03-16 23:34:02 +0000 |
| commit | e44f95820ee182460bee2e7569ab4ecb1d444112 (patch) | |
| tree | eaf60c648066fef5b57512dc6ccc47d8095717e4 /src/selectors.cc | |
| parent | 5f7464d90d0bfe641dd2c7bbbca6e78d92d9d818 (diff) | |
Fixes some clang-tidy warning and add a few missing meta.hh include
Diffstat (limited to 'src/selectors.cc')
| -rw-r--r-- | src/selectors.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/selectors.cc b/src/selectors.cc index ece2b9ce..87a4a345 100644 --- a/src/selectors.cc +++ b/src/selectors.cc @@ -807,13 +807,13 @@ void select_buffer(SelectionList& selections) } static RegexConstant::match_flag_type -match_flags(const Buffer& buf, BufferIterator begin, BufferIterator end) +match_flags(const Buffer& buf, const BufferIterator& begin, const BufferIterator& end) { return match_flags(is_bol(begin.coord()), is_eol(buf, end.coord()), is_bow(buf, begin.coord()), is_eow(buf, end.coord())); } -static bool find_next(const Buffer& buffer, BufferIterator pos, +static bool find_next(const Buffer& buffer, const BufferIterator& pos, MatchResults<BufferIterator>& matches, const Regex& ex, bool& wrapped) { @@ -826,7 +826,7 @@ static bool find_next(const Buffer& buffer, BufferIterator pos, match_flags(buffer, buffer.begin(), buffer.end())); } -static bool find_prev(const Buffer& buffer, BufferIterator pos, +static bool find_prev(const Buffer& buffer, const BufferIterator& pos, MatchResults<BufferIterator>& matches, const Regex& ex, bool& wrapped) { |
