mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:37:36 +00:00
Everywhere: Pass AK::StringView by value
This commit is contained in:
parent
ad5d217e76
commit
8b1108e485
392 changed files with 978 additions and 978 deletions
|
@ -43,7 +43,7 @@ bool Workbook::set_filename(const String& filename)
|
|||
return true;
|
||||
}
|
||||
|
||||
Result<bool, String> Workbook::load(const StringView& filename)
|
||||
Result<bool, String> Workbook::load(StringView filename)
|
||||
{
|
||||
auto file_or_error = Core::File::open(filename, Core::OpenMode::ReadOnly);
|
||||
if (file_or_error.is_error()) {
|
||||
|
@ -70,7 +70,7 @@ Result<bool, String> Workbook::load(const StringView& filename)
|
|||
return true;
|
||||
}
|
||||
|
||||
Result<bool, String> Workbook::save(const StringView& filename)
|
||||
Result<bool, String> Workbook::save(StringView filename)
|
||||
{
|
||||
auto mime = Core::guess_mime_type_based_on_filename(filename);
|
||||
auto file = Core::File::construct(filename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue