From c08956028aacbfe344db468e6651f1cf7c7b7b8e Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Thu, 29 Dec 2022 15:52:46 -0500 Subject: [PATCH] SQLServer: Mark a deferred invocation lambda as mutable Otherwise the `move(result)` statement inside the lambda does not actually move anything, because `result` is constant without the mutable attribute. Caught by clangd. --- Userland/Services/SQLServer/SQLStatement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Services/SQLServer/SQLStatement.cpp b/Userland/Services/SQLServer/SQLStatement.cpp index 74b9139778..d95337acd7 100644 --- a/Userland/Services/SQLServer/SQLStatement.cpp +++ b/Userland/Services/SQLServer/SQLStatement.cpp @@ -134,7 +134,7 @@ void SQLStatement::next(SQL::ExecutionID execution_id, SQL::ResultSet result, si auto result_row = result.take_first(); client_connection->async_next_result(statement_id(), execution_id, result_row.row.take_data()); - deferred_invoke([this, execution_id, result = move(result), result_size]() { + deferred_invoke([this, execution_id, result = move(result), result_size]() mutable { next(execution_id, move(result), result_size); }); } else {