From a91a49337c5992d64b30f493eea1eb492792b667 Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Wed, 12 May 2021 13:56:43 +0430 Subject: LibCore+Everywhere: Move OpenMode out of IODevice ...and make it an enum class so people don't omit "OpenMode". --- Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibWeb/Loader') diff --git a/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp b/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp index e8b144449a..b02fb31ccd 100644 --- a/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp +++ b/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp @@ -133,7 +133,7 @@ void ResourceLoader::load(const LoadRequest& request, Functionset_filename(url.path()); - if (!f->open(Core::IODevice::OpenMode::ReadOnly)) { + if (!f->open(Core::OpenMode::ReadOnly)) { dbgln("ResourceLoader::load: Error: {}", f->error_string()); if (error_callback) error_callback(f->error_string(), {}); -- cgit v1.2.3