diff options
author | Timothy <timmot@users.noreply.github.com> | 2021-08-06 11:49:56 +1000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-07 12:48:22 +0200 |
commit | 62af82f494aeb3c9422f87f0db522448ae8f87d5 (patch) | |
tree | 2e8b4984e917c3f70e02dd089cb5bce797747075 /AK | |
parent | bc75ca4fe55b0a19852c20e677bb4008156ceaff (diff) | |
download | serenity-62af82f494aeb3c9422f87f0db522448ae8f87d5.zip |
AK: Use east const in MappedFile
Diffstat (limited to 'AK')
-rw-r--r-- | AK/MappedFile.cpp | 2 | ||||
-rw-r--r-- | AK/MappedFile.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/AK/MappedFile.cpp b/AK/MappedFile.cpp index 6323c1bb93..38e13f3d82 100644 --- a/AK/MappedFile.cpp +++ b/AK/MappedFile.cpp @@ -15,7 +15,7 @@ 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); if (fd < 0) diff --git a/AK/MappedFile.h b/AK/MappedFile.h index 9002d8beb1..2dcf197a9e 100644 --- a/AK/MappedFile.h +++ b/AK/MappedFile.h @@ -19,7 +19,7 @@ class MappedFile : public RefCounted<MappedFile> { AK_MAKE_NONMOVABLE(MappedFile); 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); ~MappedFile(); |