mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 23:37:35 +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
|
@ -17,8 +17,8 @@ class Workbook {
|
|||
public:
|
||||
Workbook(NonnullRefPtrVector<Sheet>&& sheets);
|
||||
|
||||
Result<bool, String> save(const StringView& filename);
|
||||
Result<bool, String> load(const StringView& filename);
|
||||
Result<bool, String> save(StringView filename);
|
||||
Result<bool, String> load(StringView filename);
|
||||
|
||||
const String& current_filename() const { return m_current_filename; }
|
||||
bool set_filename(const String& filename);
|
||||
|
@ -30,7 +30,7 @@ public:
|
|||
const NonnullRefPtrVector<Sheet>& sheets() const { return m_sheets; }
|
||||
NonnullRefPtrVector<Sheet> sheets() { return m_sheets; }
|
||||
|
||||
Sheet& add_sheet(const StringView& name)
|
||||
Sheet& add_sheet(StringView name)
|
||||
{
|
||||
auto sheet = Sheet::construct(name, *this);
|
||||
m_sheets.append(sheet);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue