LibSQL: Replace DownPointer copy constructor with move constructor

Avoids awkwardly const-casting the "other" DownPointer.
This commit is contained in:
Timothy Flynn 2022-10-29 11:22:30 -04:00 committed by Linus Groh
commit 948bd50197
Notes: sideshowbarker 2024-07-17 04:54:10 +09:00
2 changed files with 4 additions and 13 deletions

View file

@ -36,7 +36,7 @@ class DownPointer {
public:
explicit DownPointer(TreeNode*, u32 = 0);
DownPointer(TreeNode*, TreeNode*);
DownPointer(DownPointer const&);
DownPointer(DownPointer&&);
DownPointer(TreeNode*, DownPointer&);
~DownPointer() = default;
[[nodiscard]] u32 pointer() const { return m_pointer; }