From 90b1354688e988ba1311a5645f631d353fa7ff80 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 21 Jun 2019 18:37:47 +0200 Subject: AK: Rename RetainPtr => RefPtr and Retained => NonnullRefPtr. --- LibC/SharedBuffer.cpp | 4 ++-- LibC/SharedBuffer.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'LibC') 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 #include -RetainPtr SharedBuffer::create(pid_t peer, int size) +RefPtr 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::create(pid_t peer, int size) return adopt(*new SharedBuffer(shared_buffer_id, size, data)); } -RetainPtr SharedBuffer::create_from_shared_buffer_id(int shared_buffer_id) +RefPtr 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 { public: - static RetainPtr create(pid_t peer, int); - static RetainPtr create_from_shared_buffer_id(int); + static RefPtr create(pid_t peer, int); + static RefPtr create_from_shared_buffer_id(int); ~SharedBuffer(); int shared_buffer_id() const { return m_shared_buffer_id; } -- cgit v1.2.3