diff options
author | MacDue <macdue@dueutil.tech> | 2022-11-19 01:09:53 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-11-19 14:37:31 +0000 |
commit | 8a5d2be617a82c93cfafa6c714dff67ab5ff0f7b (patch) | |
tree | 4245758b39618f88b850581e8c9519c3077559fe /Userland/Services/SQLServer | |
parent | 66a428ae03e12e5990feb209533f99516e41ed78 (diff) | |
download | serenity-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/SQLServer')
-rw-r--r-- | Userland/Services/SQLServer/SQLStatement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/SQLServer/SQLStatement.cpp b/Userland/Services/SQLServer/SQLStatement.cpp index 11b3068356..9ef3bb4bbc 100644 --- a/Userland/Services/SQLServer/SQLStatement.cpp +++ b/Userland/Services/SQLServer/SQLStatement.cpp @@ -60,7 +60,7 @@ void SQLStatement::execute() return; } - deferred_invoke([this]() mutable { + deferred_invoke([this] { auto parse_result = parse(); if (parse_result.is_error()) { report_error(parse_result.release_error()); |