mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:57:34 +00:00
LibJS: Use move() on the SourceRange in create_ast_node()
This commit is contained in:
parent
1f909d24b6
commit
c767535ca2
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ template<class T, class... Args>
|
||||||
static inline NonnullRefPtr<T>
|
static inline NonnullRefPtr<T>
|
||||||
create_ast_node(SourceRange range, Args&&... args)
|
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> {
|
class ASTNode : public RefCounted<ASTNode> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue