From 679fc3066c7018659abe3d67fec01fb7885d501f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 25 May 2021 18:52:00 +0200 Subject: LibJS: Fix clang-tidy warnings about unnecessary move()s in VM.cpp --- Userland/Libraries/LibJS/Runtime/VM.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland/Libraries/LibJS') 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