1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:37:35 +00:00

LibJS: Use move() on the SourceRange in create_ast_node()

This commit is contained in:
Andreas Kling 2022-11-27 12:32:05 +01:00 committed by Linus Groh
parent 1f909d24b6
commit c767535ca2

View file

@ -43,7 +43,7 @@ template<class T, class... Args>
static inline NonnullRefPtr<T>
create_ast_node(SourceRange range, Args&&... args)
{
return adopt_ref(*new T(range, forward<Args>(args)...));
return adopt_ref(*new T(move(range), forward<Args>(args)...));
}
class ASTNode : public RefCounted<ASTNode> {