summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-25 18:52:00 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-25 18:52:00 +0200
commit679fc3066c7018659abe3d67fec01fb7885d501f (patch)
tree145b7ceb2309447a8a8b0317142806fbe0938e1f /Userland/Libraries/LibJS
parent47a4b2ba9f9e59b0733c04326b29bcbab53c867d (diff)
downloadserenity-679fc3066c7018659abe3d67fec01fb7885d501f.zip
LibJS: Fix clang-tidy warnings about unnecessary move()s in VM.cpp
Diffstat (limited to 'Userland/Libraries/LibJS')
-rw-r--r--Userland/Libraries/LibJS/Runtime/VM.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/VM.cpp b/Userland/Libraries/LibJS/Runtime/VM.cpp
index 304630b73e..650cc509c1 100644
--- a/Userland/Libraries/LibJS/Runtime/VM.cpp
+++ b/Userland/Libraries/LibJS/Runtime/VM.cpp
@@ -146,7 +146,7 @@ void VM::set_variable(const FlyString& name, Value value, GlobalObject& global_o
}
}
- global_object.put(move(name), move(value));
+ global_object.put(name, value);
}
Value VM::get_variable(const FlyString& name, GlobalObject& global_object)
@@ -324,7 +324,7 @@ Value VM::call_internal(Function& function, Value this_value, Optional<MarkedVal
call_frame.this_value = function.bound_this().value_or(this_value);
call_frame.arguments = function.bound_arguments();
if (arguments.has_value())
- call_frame.arguments.append(move(arguments.release_value().values()));
+ call_frame.arguments.append(arguments.value().values());
auto* environment = function.create_environment();
call_frame.scope = environment;