mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-25 10:48:53 +00:00
AK: Use AK_MAKE_DEFAULT_MOVABLE to avoid mistakes in default impls
This commit is contained in:
parent
3d3dfc8da8
commit
041f5e931d
Notes:
sideshowbarker
2024-07-17 04:34:25 +09:00
Author: https://github.com/BenWiederhake
Commit: 041f5e931d
Pull-request: https://github.com/SerenityOS/serenity/pull/19422
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