mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:57:44 +00:00
AK: Use AK_MAKE_DEFAULT_MOVABLE to avoid mistakes in default impls
This commit is contained in:
parent
3d3dfc8da8
commit
041f5e931d
3 changed files with 4 additions and 16 deletions
|
@ -15,14 +15,12 @@ namespace AK {
|
|||
|
||||
class CircularBuffer {
|
||||
AK_MAKE_NONCOPYABLE(CircularBuffer);
|
||||
AK_MAKE_DEFAULT_MOVABLE(CircularBuffer);
|
||||
|
||||
public:
|
||||
static ErrorOr<CircularBuffer> create_empty(size_t size);
|
||||
static ErrorOr<CircularBuffer> create_initialized(ByteBuffer);
|
||||
|
||||
CircularBuffer(CircularBuffer&& other) = default;
|
||||
CircularBuffer& operator=(CircularBuffer&& other) = default;
|
||||
|
||||
~CircularBuffer() = default;
|
||||
|
||||
size_t write(ReadonlyBytes bytes);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue