summaryrefslogtreecommitdiff
path: root/Userland/Services/WebDriver
diff options
context:
space:
mode:
authorMacDue <macdue@dueutil.tech>2022-11-19 01:09:53 +0000
committerLinus Groh <mail@linusgroh.de>2022-11-19 14:37:31 +0000
commit8a5d2be617a82c93cfafa6c714dff67ab5ff0f7b (patch)
tree4245758b39618f88b850581e8c9519c3077559fe /Userland/Services/WebDriver
parent66a428ae03e12e5990feb209533f99516e41ed78 (diff)
downloadserenity-8a5d2be617a82c93cfafa6c714dff67ab5ff0f7b.zip
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.
Diffstat (limited to 'Userland/Services/WebDriver')
-rw-r--r--Userland/Services/WebDriver/Session.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Services/WebDriver/Session.cpp b/Userland/Services/WebDriver/Session.cpp
index 7510425cb6..a96bb49819 100644
--- a/Userland/Services/WebDriver/Session.cpp
+++ b/Userland/Services/WebDriver/Session.cpp
@@ -36,7 +36,7 @@ ErrorOr<NonnullRefPtr<Core::LocalServer>> Session::create_server(String const& s
auto server = TRY(Core::LocalServer::try_create());
server->listen(socket_path);
- server->on_accept = [this, promise](auto client_socket) mutable {
+ server->on_accept = [this, promise](auto client_socket) {
auto maybe_connection = adopt_nonnull_ref_or_enomem(new (nothrow) WebContentConnection(move(client_socket), m_client, session_id()));
if (maybe_connection.is_error()) {
promise->resolve(maybe_connection.release_error());
@@ -49,7 +49,7 @@ ErrorOr<NonnullRefPtr<Core::LocalServer>> Session::create_server(String const& s
promise->resolve({});
};
- server->on_accept_error = [promise](auto error) mutable {
+ server->on_accept_error = [promise](auto error) {
promise->resolve(move(error));
};