diff options
author | Andreas Kling <kling@serenityos.org> | 2021-04-29 22:23:52 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-29 22:23:52 +0200 |
commit | 3d4afe7614bf8ff4c6fe141d1dcd83688a7ac8cd (patch) | |
tree | b27345e76b10d2cd7c4381a70385c21d6310405a /Userland/Applications/Spreadsheet/SpreadsheetView.cpp | |
parent | 7ae7170d6140f7cad730f05f84b53437058b82f4 (diff) | |
download | serenity-3d4afe7614bf8ff4c6fe141d1dcd83688a7ac8cd.zip |
Everywhere: "indexes" => "indices"
I've wasted a silly amount of time in the past fretting over which
of these words to use. Let's just choose one and use it everywhere. :^)
Diffstat (limited to 'Userland/Applications/Spreadsheet/SpreadsheetView.cpp')
-rw-r--r-- | Userland/Applications/Spreadsheet/SpreadsheetView.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Applications/Spreadsheet/SpreadsheetView.cpp b/Userland/Applications/Spreadsheet/SpreadsheetView.cpp index 92957d1704..42b57cbf3a 100644 --- a/Userland/Applications/Spreadsheet/SpreadsheetView.cpp +++ b/Userland/Applications/Spreadsheet/SpreadsheetView.cpp @@ -191,7 +191,7 @@ SpreadsheetView::SpreadsheetView(Sheet& sheet) m_table_view->on_selection_change = [&] { m_sheet->selected_cells().clear(); - for (auto& index : m_table_view->selection().indexes()) { + for (auto& index : m_table_view->selection().indices()) { Position position { (size_t)index.column(), (size_t)index.row() }; m_sheet->selected_cells().set(position); } @@ -201,7 +201,7 @@ SpreadsheetView::SpreadsheetView(Sheet& sheet) Vector<Position> selected_positions; selected_positions.ensure_capacity(m_table_view->selection().size()); - for (auto& selection : m_table_view->selection().indexes()) + for (auto& selection : m_table_view->selection().indices()) selected_positions.empend((size_t)selection.column(), (size_t)selection.row()); if (on_selection_changed) { @@ -222,7 +222,7 @@ SpreadsheetView::SpreadsheetView(Sheet& sheet) m_cell_range_context_menu = GUI::Menu::construct(); m_cell_range_context_menu->add_action(GUI::Action::create("Type and Formatting...", [this](auto&) { Vector<Position> positions; - for (auto& index : m_table_view->selection().indexes()) { + for (auto& index : m_table_view->selection().indices()) { Position position { (size_t)index.column(), (size_t)index.row() }; positions.append(move(position)); } @@ -295,7 +295,7 @@ void SpreadsheetView::show_event(GUI::ShowEvent&) if (on_selection_changed && !m_table_view->selection().is_empty()) { Vector<Position> selected_positions; selected_positions.ensure_capacity(m_table_view->selection().size()); - for (auto& selection : m_table_view->selection().indexes()) + for (auto& selection : m_table_view->selection().indices()) selected_positions.empend((size_t)selection.column(), (size_t)selection.row()); on_selection_changed(move(selected_positions)); |