소스 검색

LibJS: Fix improper usages of forward as flagged by SonarCloud

davidot 3 년 전
부모
커밋
04454efa72
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Userland/Libraries/LibJS/AST.h

+ 1 - 1
Userland/Libraries/LibJS/AST.h

@@ -146,7 +146,7 @@ public:
     template<typename CallableType>
     IteratorOrVoidFunction(CallableType&& callable) requires(VoidFunction<CallableType, Args...>)
         : Function<IterationDecision(Args...)>([callable = forward<CallableType>(callable)](Args... args) {
-            callable(forward<Args>(args)...);
+            callable(args...);
             return IterationDecision::Continue;
         })
     {