1
0
Fork 0
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:
Lenny Maiorani 2021-08-03 12:36:58 -06:00 committed by Andreas Kling
parent 91c9d9ee88
commit da10ad3f0d
Notes: sideshowbarker 2024-07-18 07:23:07 +09:00
2 changed files with 1 additions and 7 deletions

View file

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