From 915cce5b74960c946fff8da10b87728b150f90d4 Mon Sep 17 00:00:00 2001 From: Max Wipfli Date: Thu, 27 May 2021 21:25:33 +0200 Subject: [PATCH] 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. --- Userland/Applications/Spreadsheet/Spreadsheet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/Spreadsheet/Spreadsheet.cpp b/Userland/Applications/Spreadsheet/Spreadsheet.cpp index ec4a0d39ad..1e3dce5e8f 100644 --- a/Userland/Applications/Spreadsheet/Spreadsheet.cpp +++ b/Userland/Applications/Spreadsheet/Spreadsheet.cpp @@ -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; }