diff options
author | asynts <asynts@gmail.com> | 2020-07-26 11:22:05 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-26 16:49:06 +0200 |
commit | 707d92db61249a7f6d9aafdf214297ac4d00d8a2 (patch) | |
tree | a9b25256b243435bb12f85a875ecacf94119c33f /Libraries | |
parent | ac9c2bc4920f1853a51e42af5fa8814537cff6bd (diff) | |
download | serenity-707d92db61249a7f6d9aafdf214297ac4d00d8a2.zip |
Refactor: Change the AK::binary_search signature to use AK::Span.
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibLine/XtermSuggestionDisplay.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibLine/XtermSuggestionDisplay.cpp b/Libraries/LibLine/XtermSuggestionDisplay.cpp index b908056b13..9a56bd784b 100644 --- a/Libraries/LibLine/XtermSuggestionDisplay.cpp +++ b/Libraries/LibLine/XtermSuggestionDisplay.cpp @@ -187,7 +187,7 @@ size_t XtermSuggestionDisplay::fit_to_page_boundary(size_t selection_index) int index = 0; auto* match = binary_search( - m_pages.data(), m_pages.size(), { selection_index, selection_index }, [](auto& a, auto& b) -> int { + m_pages.span(), { selection_index, selection_index }, [](auto& a, auto& b) -> int { if (a.start >= b.start && a.start < b.end) return 0; return a.start - b.start; |