diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-06-21 18:37:47 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-06-21 18:37:47 +0200 |
commit | 90b1354688e988ba1311a5645f631d353fa7ff80 (patch) | |
tree | 5619e16c34d3f2f9142c270e2a906614a6d598a6 /LibC | |
parent | 77b9fa89dd36fcd56d956667a956ef7f2ee8f963 (diff) | |
download | serenity-90b1354688e988ba1311a5645f631d353fa7ff80.zip |
AK: Rename RetainPtr => RefPtr and Retained => NonnullRefPtr.
Diffstat (limited to 'LibC')
-rw-r--r-- | LibC/SharedBuffer.cpp | 4 | ||||
-rw-r--r-- | LibC/SharedBuffer.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/LibC/SharedBuffer.cpp b/LibC/SharedBuffer.cpp index 58537a0094..cc61d6a25f 100644 --- a/LibC/SharedBuffer.cpp +++ b/LibC/SharedBuffer.cpp @@ -3,7 +3,7 @@ #include <stdio.h> #include <unistd.h> -RetainPtr<SharedBuffer> SharedBuffer::create(pid_t peer, int size) +RefPtr<SharedBuffer> SharedBuffer::create(pid_t peer, int size) { void* data; int shared_buffer_id = create_shared_buffer(peer, size, &data); @@ -14,7 +14,7 @@ RetainPtr<SharedBuffer> SharedBuffer::create(pid_t peer, int size) return adopt(*new SharedBuffer(shared_buffer_id, size, data)); } -RetainPtr<SharedBuffer> SharedBuffer::create_from_shared_buffer_id(int shared_buffer_id) +RefPtr<SharedBuffer> SharedBuffer::create_from_shared_buffer_id(int shared_buffer_id) { void* data = get_shared_buffer(shared_buffer_id); if (data == (void*)-1) { diff --git a/LibC/SharedBuffer.h b/LibC/SharedBuffer.h index 09c5b83f3a..588ba1821b 100644 --- a/LibC/SharedBuffer.h +++ b/LibC/SharedBuffer.h @@ -5,8 +5,8 @@ class SharedBuffer : public RefCounted<SharedBuffer> { public: - static RetainPtr<SharedBuffer> create(pid_t peer, int); - static RetainPtr<SharedBuffer> create_from_shared_buffer_id(int); + static RefPtr<SharedBuffer> create(pid_t peer, int); + static RefPtr<SharedBuffer> create_from_shared_buffer_id(int); ~SharedBuffer(); int shared_buffer_id() const { return m_shared_buffer_id; } |