mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 03:57:15 +02:00
LibCore+AK: Move MappedFile from AK to LibCore
MappedFile is strictly a userspace thing, so it doesn't belong in AK (which is supposed to be user/kernel agnostic.)
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 00:49:12 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/58fb3ebf660
@@ -72,7 +72,7 @@ ErrorOr<StringView> ManualModel::page_view(String const& path) const
|
||||
return StringView { mapped_file.value()->bytes() };
|
||||
}
|
||||
|
||||
auto file = TRY(MappedFile::map(path));
|
||||
auto file = TRY(Core::MappedFile::map(path));
|
||||
|
||||
StringView view { file->bytes() };
|
||||
m_mapped_files.set(path, move(file));
|
||||
|
||||
Reference in New Issue
Block a user