mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 20:17:13 +02:00
Kernel: Explain correctness of reference to local lambda
This commit is contained in:
committed by
Andreas Kling
parent
70a2adaace
commit
737c9f0a14
Notes:
sideshowbarker
2024-07-19 03:00:47 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/737c9f0a144 Pull-request: https://github.com/SerenityOS/serenity/pull/3343 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/tomuta
@@ -454,6 +454,8 @@ Vector<Ext2FS::BlockIndex> Ext2FS::block_list_for_inode_impl(const ext2_inode& e
|
||||
if (!blocks_remaining)
|
||||
return list;
|
||||
|
||||
// Don't need to make copy of add_block, since this capture will only
|
||||
// be called before block_list_for_inode_impl finishes.
|
||||
auto process_block_array = [&](unsigned array_block_index, auto&& callback) {
|
||||
if (include_block_list_blocks)
|
||||
add_block(array_block_index);
|
||||
|
||||
Reference in New Issue
Block a user