mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 06:09:08 +00:00
Take StringView in more places
We should work towards a pattern where we take StringView as function arguments, and store String as member, to push the String construction to the last possible moment.
This commit is contained in:
parent
b55b6cd7fc
commit
7bce096afd
Notes:
sideshowbarker
2024-07-19 13:46:26 +09:00
Author: https://github.com/rburchell
Commit: 7bce096afd
Pull-request: https://github.com/SerenityOS/serenity/pull/167
14 changed files with 28 additions and 36 deletions
|
@ -3,7 +3,7 @@
|
|||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
CFile::CFile(const String& filename)
|
||||
CFile::CFile(const StringView& filename)
|
||||
: m_filename(filename)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue