1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:17:45 +00:00

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
parent ac808a261f
commit 04454efa72

View file

@ -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;
})
{