Coding style fixes in AK.

This commit is contained in:
Andreas Kling
2019-01-19 22:53:05 +01:00
parent b413e234e1
commit b75ee4aacb
12 changed files with 126 additions and 126 deletions

View File

@@ -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) {

View File

@@ -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)