1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00

LibCore: Make DirIterator take String instead of StringView

This commit is contained in:
Andreas Kling 2021-04-17 00:48:07 +02:00
parent 0e4eb62dd8
commit 510aad6515
2 changed files with 4 additions and 4 deletions

View file

@ -31,11 +31,11 @@
namespace Core {
DirIterator::DirIterator(const StringView& path, Flags flags)
: m_path(path)
DirIterator::DirIterator(String path, Flags flags)
: m_path(move(path))
, m_flags(flags)
{
m_dir = opendir(path.to_string().characters());
m_dir = opendir(m_path.characters());
if (!m_dir) {
m_error = errno;
}