summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorTimothy <timmot@users.noreply.github.com>2021-08-06 11:49:56 +1000
committerAndreas Kling <kling@serenityos.org>2021-08-07 12:48:22 +0200
commit62af82f494aeb3c9422f87f0db522448ae8f87d5 (patch)
tree2e8b4984e917c3f70e02dd089cb5bce797747075 /AK
parentbc75ca4fe55b0a19852c20e677bb4008156ceaff (diff)
downloadserenity-62af82f494aeb3c9422f87f0db522448ae8f87d5.zip
AK: Use east const in MappedFile
Diffstat (limited to 'AK')
-rw-r--r--AK/MappedFile.cpp2
-rw-r--r--AK/MappedFile.h2
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();