LibJS: Fix improper usages of forward as flagged by SonarCloud

This commit is contained in:
davidot 2021-10-03 13:58:52 +02:00 committed by Andreas Kling
commit 04454efa72
Notes: sideshowbarker 2024-07-18 03:08:25 +09:00

View file

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