mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:47:44 +00:00
LibCore: Do not return an Optional from Resource:::filesystem_path
This API never returns OptionalNone, and all callers already assume as much.
This commit is contained in:
parent
2a1fc96650
commit
98a82565cd
6 changed files with 16 additions and 9 deletions
|
@ -12,15 +12,17 @@
|
|||
#include <LibCore/ResourceImplementation.h>
|
||||
|
||||
namespace Core {
|
||||
|
||||
class ResourceImplementationFile : public ResourceImplementation {
|
||||
public:
|
||||
explicit ResourceImplementationFile(String base_directory);
|
||||
|
||||
virtual ErrorOr<NonnullRefPtr<Resource>> load_from_resource_scheme_uri(StringView) override;
|
||||
virtual Vector<String> child_names_for_resource_scheme(Resource const&) override;
|
||||
virtual Optional<String> filesystem_path_for_resource_scheme(String const&) override;
|
||||
virtual String filesystem_path_for_resource_scheme(String const&) override;
|
||||
|
||||
private:
|
||||
String m_base_directory;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue