mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
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.
This commit is contained in:
parent
21255cb2b8
commit
c08956028a
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue