summaryrefslogtreecommitdiff
path: root/Ladybird/WebContent/main.cpp
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2023-02-09 03:02:46 +0100
committerLinus Groh <mail@linusgroh.de>2023-02-13 00:50:07 +0000
commit606a3982f34d777f121fcc4aa964141199676c20 (patch)
tree836fef41d11f1b77f4dac7d699e5c9f720ee4ff1 /Ladybird/WebContent/main.cpp
parenta96339b72b3b417ffaa4fbb4e7575149f749acaa (diff)
downloadserenity-606a3982f34d777f121fcc4aa964141199676c20.zip
LibCore: Move Stream-based file into the `Core` namespace
Diffstat (limited to 'Ladybird/WebContent/main.cpp')
-rw-r--r--Ladybird/WebContent/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Ladybird/WebContent/main.cpp b/Ladybird/WebContent/main.cpp
index 9cce282d08..d1ab62ad9b 100644
--- a/Ladybird/WebContent/main.cpp
+++ b/Ladybird/WebContent/main.cpp
@@ -111,13 +111,13 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
static ErrorOr<void> load_content_filters()
{
- auto file_or_error = Core::Stream::File::open(DeprecatedString::formatted("{}/home/anon/.config/BrowserContentFilters.txt", s_serenity_resource_root), Core::Stream::OpenMode::Read);
+ auto file_or_error = Core::File::open(DeprecatedString::formatted("{}/home/anon/.config/BrowserContentFilters.txt", s_serenity_resource_root), Core::File::OpenMode::Read);
if (file_or_error.is_error())
- file_or_error = Core::Stream::File::open(DeprecatedString::formatted("{}/res/ladybird/BrowserContentFilters.txt", s_serenity_resource_root), Core::Stream::OpenMode::Read);
+ file_or_error = Core::File::open(DeprecatedString::formatted("{}/res/ladybird/BrowserContentFilters.txt", s_serenity_resource_root), Core::File::OpenMode::Read);
if (file_or_error.is_error())
return file_or_error.release_error();
auto file = file_or_error.release_value();
- auto ad_filter_list = TRY(Core::Stream::BufferedFile::create(move(file)));
+ auto ad_filter_list = TRY(Core::BufferedFile::create(move(file)));
auto buffer = TRY(ByteBuffer::create_uninitialized(4096));
while (TRY(ad_filter_list->can_read_line())) {
auto line = TRY(ad_filter_list->read_line(buffer));