1
Fork 0
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:
Andreas Kling 2019-07-11 15:45:11 +02:00
parent 5254a320d8
commit b0372883ff
4 changed files with 11 additions and 8 deletions

View file

@ -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;
}