mirror of
https://github.com/RGBCube/serenity
synced 2025-05-17 15:45:08 +00:00
StringViewize a bunch of things -- mostly LibGUI
This commit is contained in:
parent
f9ba7adae2
commit
1024dfa81a
59 changed files with 129 additions and 139 deletions
|
@ -92,7 +92,7 @@ struct GFileSystemModel::Node {
|
|||
}
|
||||
};
|
||||
|
||||
GModelIndex GFileSystemModel::index(const String& path) const
|
||||
GModelIndex GFileSystemModel::index(const StringView& path) const
|
||||
{
|
||||
FileSystemPath canonical_path(path);
|
||||
const Node* node = m_root;
|
||||
|
@ -125,7 +125,7 @@ String GFileSystemModel::path(const GModelIndex& index) const
|
|||
return node.full_path(*this);
|
||||
}
|
||||
|
||||
GFileSystemModel::GFileSystemModel(const String& root_path, Mode mode)
|
||||
GFileSystemModel::GFileSystemModel(const StringView& root_path, Mode mode)
|
||||
: m_root_path(FileSystemPath(root_path).string())
|
||||
, m_mode(mode)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue