mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
AK: Use east const in MappedFile
This commit is contained in:
parent
bc75ca4fe5
commit
62af82f494
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
namespace AK {
|
namespace AK {
|
||||||
|
|
||||||
Result<NonnullRefPtr<MappedFile>, OSError> MappedFile::map(const String& path)
|
Result<NonnullRefPtr<MappedFile>, OSError> MappedFile::map(String const& path)
|
||||||
{
|
{
|
||||||
int fd = open(path.characters(), O_RDONLY | O_CLOEXEC, 0);
|
int fd = open(path.characters(), O_RDONLY | O_CLOEXEC, 0);
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
|
|
|
@ -19,7 +19,7 @@ class MappedFile : public RefCounted<MappedFile> {
|
||||||
AK_MAKE_NONMOVABLE(MappedFile);
|
AK_MAKE_NONMOVABLE(MappedFile);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static Result<NonnullRefPtr<MappedFile>, OSError> map(const String& path);
|
static Result<NonnullRefPtr<MappedFile>, OSError> map(String const& path);
|
||||||
static Result<NonnullRefPtr<MappedFile>, OSError> map_from_fd_and_close(int fd, String const& path);
|
static Result<NonnullRefPtr<MappedFile>, OSError> map_from_fd_and_close(int fd, String const& path);
|
||||||
~MappedFile();
|
~MappedFile();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue