mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 22:52:10 +02:00
LibJS: Use move() on the SourceRange in create_ast_node()
This commit is contained in:
committed by
Linus Groh
parent
1f909d24b6
commit
c767535ca2
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user