ソースを参照

LibJS: Fix clang-tidy warnings about unnecessary move()s in VM.cpp

Andreas Kling 4 年 前
コミット
679fc3066c
1 ファイル変更2 行追加2 行削除
  1. 2 2
      Userland/Libraries/LibJS/Runtime/VM.cpp

+ 2 - 2
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)
 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.this_value = function.bound_this().value_or(this_value);
     call_frame.arguments = function.bound_arguments();
     call_frame.arguments = function.bound_arguments();
     if (arguments.has_value())
     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();
     auto* environment = function.create_environment();
     call_frame.scope = environment;
     call_frame.scope = environment;