summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibSQL/AST.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibSQL/AST.h')
-rw-r--r--Userland/Libraries/LibSQL/AST.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibSQL/AST.h b/Userland/Libraries/LibSQL/AST.h
index fed6eaf0c0..922432b48a 100644
--- a/Userland/Libraries/LibSQL/AST.h
+++ b/Userland/Libraries/LibSQL/AST.h
@@ -20,7 +20,7 @@ template<class T, class... Args>
static inline NonnullRefPtr<T>
create_ast_node(Args&&... args)
{
- return adopt(*new T(forward<Args>(args)...));
+ return adopt_ref(*new T(forward<Args>(args)...));
}
class ASTNode : public RefCounted<ASTNode> {