mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +00:00
Kernel: Remove all friend declarations from SysFSComponentRegistry
Let them access the class using public API instead.
This commit is contained in:
parent
d40ea1a0a8
commit
a9decf5aa6
Notes:
sideshowbarker
2024-07-18 09:21:34 +09:00
Author: https://github.com/awesomekling
Commit: a9decf5aa6
4 changed files with 6 additions and 10 deletions
|
@ -28,7 +28,7 @@ SysFSComponent::SysFSComponent(StringView name)
|
|||
|
||||
KResult SysFSDirectory::traverse_as_directory(unsigned fsid, Function<bool(FileSystem::DirectoryEntryView const&)> callback) const
|
||||
{
|
||||
Locker locker(SysFSComponentRegistry::the().m_lock);
|
||||
Locker locker(SysFSComponentRegistry::the().get_lock());
|
||||
VERIFY(m_parent_folder);
|
||||
callback({ ".", { fsid, component_index() }, 0 });
|
||||
callback({ "..", { fsid, m_parent_folder->component_index() }, 0 });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue