1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:37:45 +00:00

Spreadsheet: Remove usage of URL::set_path()

This replaces a call to URL::set_path() with URL::set_paths(), as
set_path() will be deprecated and removed.
This commit is contained in:
Max Wipfli 2021-05-27 21:25:33 +02:00 committed by Andreas Kling
parent 81f03e7a5d
commit 915cce5b74

View file

@ -706,7 +706,7 @@ URL Position::to_url(const Sheet& sheet) const
URL url;
url.set_protocol("spreadsheet");
url.set_host("cell");
url.set_path(String::formatted("/{}", getpid()));
url.set_paths({ String::number(getpid()) });
url.set_fragment(to_cell_identifier(sheet));
return url;
}