mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:17: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
|
@ -18,6 +18,7 @@
|
|||
#include <LibCore/MappedFile.h>
|
||||
|
||||
namespace Core {
|
||||
|
||||
class Resource : public RefCounted<Resource> {
|
||||
public:
|
||||
static ErrorOr<NonnullRefPtr<Resource>> load_from_filesystem(StringView);
|
||||
|
@ -28,7 +29,7 @@ public:
|
|||
|
||||
[[nodiscard]] String uri() const;
|
||||
[[nodiscard]] String filename() const;
|
||||
[[nodiscard]] Optional<String> filesystem_path() const;
|
||||
[[nodiscard]] String filesystem_path() const;
|
||||
|
||||
[[nodiscard]] ByteBuffer clone_data() const;
|
||||
[[nodiscard]] ByteBuffer release_data() &&;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue