mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:38:10 +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
14 changed files with 28 additions and 36 deletions
|
@ -1,7 +1,7 @@
|
|||
#include "CDirIterator.h"
|
||||
#include <cerrno>
|
||||
|
||||
CDirIterator::CDirIterator(const String& path, Flags flags)
|
||||
CDirIterator::CDirIterator(const StringView& path, Flags flags)
|
||||
: m_flags(flags)
|
||||
{
|
||||
m_dir = opendir(path.characters());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue