From 62af82f494aeb3c9422f87f0db522448ae8f87d5 Mon Sep 17 00:00:00 2001 From: Timothy Date: Fri, 6 Aug 2021 11:49:56 +1000 Subject: [PATCH] AK: Use east const in MappedFile --- AK/MappedFile.cpp | 2 +- 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, 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();