mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Coding style fixes in AK.
This commit is contained in:
@@ -158,7 +158,7 @@ Vector<unsigned> Ext2FS::block_list_for_inode(const ext2_inode& e2inode) const
|
||||
unsigned blockCount = e2inode.i_blocks / (blockSize() / 512);
|
||||
unsigned blocksRemaining = blockCount;
|
||||
Vector<unsigned> list;
|
||||
list.ensureCapacity(blocksRemaining);
|
||||
list.ensure_capacity(blocksRemaining);
|
||||
|
||||
unsigned directCount = min(blockCount, (unsigned)EXT2_NDIR_BLOCKS);
|
||||
for (unsigned i = 0; i < directCount; ++i) {
|
||||
|
||||
@@ -131,7 +131,7 @@ bool SynthFS::remove_file(InodeIndex inode)
|
||||
}
|
||||
|
||||
Vector<InodeIndex> indices_to_remove;
|
||||
indices_to_remove.ensureCapacity(file.m_children.size());
|
||||
indices_to_remove.ensure_capacity(file.m_children.size());
|
||||
for (auto& child : file.m_children)
|
||||
indices_to_remove.unchecked_append(child->m_metadata.inode.index());
|
||||
for (auto& index : indices_to_remove)
|
||||
|
||||
Reference in New Issue
Block a user