mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 22:57:35 +00:00
AK: Replace the boolean parameter of StringView::lines with a named enum
This commit is contained in:
parent
d9349f1510
commit
07a27b2ec0
4 changed files with 9 additions and 5 deletions
|
@ -425,7 +425,7 @@ SpreadsheetView::SpreadsheetView(Sheet& sheet)
|
|||
StringView urls { data.data(), data.size() };
|
||||
Vector<Position> source_positions, target_positions;
|
||||
|
||||
for (auto& line : urls.lines(false)) {
|
||||
for (auto& line : urls.lines(StringView::ConsiderCarriageReturn::No)) {
|
||||
auto position = m_sheet->position_from_url(line);
|
||||
if (position.has_value())
|
||||
source_positions.append(position.release_value());
|
||||
|
|
|
@ -303,7 +303,7 @@ public:
|
|||
{
|
||||
return m_view.visit(
|
||||
[](StringView view) {
|
||||
auto views = view.lines(false);
|
||||
auto views = view.lines(StringView::ConsiderCarriageReturn::No);
|
||||
Vector<RegexStringView> new_views;
|
||||
for (auto& view : views)
|
||||
new_views.empend(view);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue