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, OSError> MappedFile::map(const String& path) +Result, 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 { AK_MAKE_NONMOVABLE(MappedFile); public: - static Result, OSError> map(const String& path); + static Result, OSError> map(String const& path); static Result, OSError> map_from_fd_and_close(int fd, String const& path); ~MappedFile();