mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 04:37:22 +00:00
LibJS: Fix improper usages of forward as flagged by SonarCloud
This commit is contained in:
parent
ac808a261f
commit
04454efa72
Notes:
sideshowbarker
2024-07-18 03:08:25 +09:00
Author: https://github.com/davidot
Commit: 04454efa72
Pull-request: https://github.com/SerenityOS/serenity/pull/10333
Reviewed-by: https://github.com/linusg ✅
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
})
|
})
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue