mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:37:34 +00:00
AK: Remove use of copy_ref().
This commit is contained in:
parent
5254a320d8
commit
b0372883ff
4 changed files with 11 additions and 8 deletions
|
@ -82,7 +82,7 @@ public:
|
|||
ByteBuffer() {}
|
||||
ByteBuffer(std::nullptr_t) {}
|
||||
ByteBuffer(const ByteBuffer& other)
|
||||
: m_impl(other.m_impl.copy_ref())
|
||||
: m_impl(other.m_impl)
|
||||
{
|
||||
}
|
||||
ByteBuffer(ByteBuffer&& other)
|
||||
|
@ -97,7 +97,8 @@ public:
|
|||
}
|
||||
ByteBuffer& operator=(const ByteBuffer& other)
|
||||
{
|
||||
m_impl = other.m_impl.copy_ref();
|
||||
if (this != &other)
|
||||
m_impl = other.m_impl;
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue