mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-09 19:16:02 +00:00
LibCore+LibGfx: Pass file-path as StringView
This commit is contained in:
parent
e6a3cac5ce
commit
69aece9279
Notes:
sideshowbarker
2024-07-17 10:14:49 +09:00
Author: https://github.com/Hendiadyoin1
Commit: 69aece9279
Pull-request: https://github.com/SerenityOS/serenity/pull/14269
Reviewed-by: https://github.com/linusg
4 changed files with 8 additions and 8 deletions
|
@ -19,8 +19,8 @@ class MappedFile : public RefCounted<MappedFile> {
|
|||
AK_MAKE_NONMOVABLE(MappedFile);
|
||||
|
||||
public:
|
||||
static ErrorOr<NonnullRefPtr<MappedFile>> map(String const& path);
|
||||
static ErrorOr<NonnullRefPtr<MappedFile>> map_from_fd_and_close(int fd, String const& path);
|
||||
static ErrorOr<NonnullRefPtr<MappedFile>> map(StringView path);
|
||||
static ErrorOr<NonnullRefPtr<MappedFile>> map_from_fd_and_close(int fd, StringView path);
|
||||
~MappedFile();
|
||||
|
||||
void* data() { return m_data; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue