mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
Everywhere: Remove unnecessary mutable attributes from lambdas
These lambdas were marked mutable as they captured a Ptr wrapper class by value, which then only returned const-qualified references to the value they point from the previous const pointer operators. Nothing is actually mutating in the lambdas state here, and now that the Ptr operators don't add extra const qualifiers these can be removed.
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 06:51:40 +09:00
Author: https://github.com/MacDue Commit: https://github.com/SerenityOS/serenity/commit/8a5d2be617 Pull-request: https://github.com/SerenityOS/serenity/pull/16114
@@ -228,7 +228,7 @@ void EnvironmentSettingsObject::notify_about_rejected_promises(Badge<EventLoop>)
|
||||
auto& global = global_object();
|
||||
|
||||
// 5. Queue a global task on the DOM manipulation task source given global to run the following substep:
|
||||
queue_global_task(Task::Source::DOMManipulation, global, [this, &global, list = move(list)]() mutable {
|
||||
queue_global_task(Task::Source::DOMManipulation, global, [this, &global, list = move(list)] {
|
||||
// 1. For each promise p in list:
|
||||
for (auto promise : list) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user