1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:37:34 +00:00

Reduce dependence on STL.

This commit is contained in:
Andreas Kling 2018-10-16 12:10:01 +02:00
parent 0c1a4e8de3
commit fd708a4cb1
8 changed files with 48 additions and 34 deletions

View file

@ -2,9 +2,7 @@
#include "Buffer.h"
#include "Types.h"
#include <cstdlib>
#include <cstring>
#include <cstdio>
#include "StdLib.h"
namespace AK {
@ -17,13 +15,13 @@ public:
{
}
ByteBuffer(ByteBuffer&& other)
: m_impl(std::move(other.m_impl))
: m_impl(move(other.m_impl))
{
}
ByteBuffer& operator=(ByteBuffer&& other)
{
if (this != &other)
m_impl = std::move(other.m_impl);
m_impl = move(other.m_impl);
return *this;
}
@ -73,7 +71,7 @@ public:
private:
explicit ByteBuffer(RetainPtr<Buffer<byte>>&& impl)
: m_impl(std::move(impl))
: m_impl(move(impl))
{
}