mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 17:17:45 +00:00
AK: Rename Vector::append(Vector) => Vector::extend(Vector)
Let's make it a bit more clear when we're appending the elements from one vector to the end of another vector.
This commit is contained in:
parent
7e1bffdeb8
commit
dc65f54c06
37 changed files with 103 additions and 104 deletions
|
@ -286,7 +286,7 @@ void TreeMapWidget::mousedown_event(GUI::MouseEvent& event)
|
|||
Vector<int> path = path_to_position(event.position());
|
||||
if (!path.is_empty()) {
|
||||
m_path.shrink(m_viewpoint);
|
||||
m_path.append(path);
|
||||
m_path.extend(path);
|
||||
if (on_path_change) {
|
||||
on_path_change();
|
||||
}
|
||||
|
@ -303,7 +303,7 @@ void TreeMapWidget::doubleclick_event(GUI::MouseEvent& event)
|
|||
if (node && !node_is_leaf(*node)) {
|
||||
Vector<int> path = path_to_position(event.position());
|
||||
m_path.shrink(m_viewpoint);
|
||||
m_path.append(path);
|
||||
m_path.extend(path);
|
||||
m_viewpoint = m_path.size();
|
||||
if (on_path_change) {
|
||||
on_path_change();
|
||||
|
|
|
@ -36,7 +36,7 @@ namespace Spreadsheet {
|
|||
CSVExportDialogPage::CSVExportDialogPage(const Sheet& sheet)
|
||||
: m_data(sheet.to_xsv())
|
||||
{
|
||||
m_headers.append(m_data.take_first());
|
||||
m_headers.extend(m_data.take_first());
|
||||
|
||||
auto temp_template = String::formatted("{}/spreadsheet-csv-export.{}.XXXXXX", Core::StandardPaths::tempfile_directory(), getpid());
|
||||
auto temp_path = ByteBuffer::create_uninitialized(temp_template.length() + 1);
|
||||
|
|
|
@ -321,7 +321,7 @@ void SpreadsheetWidget::add_sheet(NonnullRefPtr<Sheet>&& sheet)
|
|||
|
||||
NonnullRefPtrVector<Sheet> new_sheets;
|
||||
new_sheets.append(move(sheet));
|
||||
m_workbook->sheets().append(new_sheets);
|
||||
m_workbook->sheets().extend(new_sheets);
|
||||
setup_tabs(new_sheets);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue