mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibSQL: Use compiler generated default functions
Problem: - Clang ToT generates warnings due to user-declared functions causing the implicitly generated assignment operator to not be generated. Solution: - Declare the default constructor `= default`. - Remove the default copy constructor declaration.
This commit is contained in:
parent
91c9d9ee88
commit
da10ad3f0d
Notes:
sideshowbarker
2024-07-18 07:23:07 +09:00
Author: https://github.com/ldm5180
Commit: da10ad3f0d
Pull-request: https://github.com/SerenityOS/serenity/pull/9191
2 changed files with 1 additions and 7 deletions
|
@ -14,12 +14,11 @@ namespace SQL {
|
|||
|
||||
class Key : public Tuple {
|
||||
public:
|
||||
Key();
|
||||
Key() = default;
|
||||
explicit Key(TupleDescriptor const&);
|
||||
explicit Key(RefPtr<IndexDef>);
|
||||
Key(TupleDescriptor const&, ByteBuffer&, size_t& offset);
|
||||
Key(RefPtr<IndexDef>, ByteBuffer&, size_t& offset);
|
||||
Key(Key const&) = default;
|
||||
RefPtr<IndexDef> index() const { return m_index; }
|
||||
[[nodiscard]] virtual size_t data_length() const override { return Tuple::data_length() + sizeof(u32); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue