Improve wording in comments a bit.

This commit is contained in:
Andrius Štikonas 2016-11-10 14:37:48 +00:00
parent f9d9d8912b
commit 0c8035f667
1 changed files with 4 additions and 4 deletions

View File

@ -375,14 +375,14 @@ void PartitionTable::insertUnallocated(const Device& d, PartitionNode* p, qint64
qint64 lastEnd = start;
if (d.type() == Device::LVM_Device && !p->children().isEmpty()) {
// rearranging all the partitions sector to keep all the unallocated space at the end
// rearranging the sectors of all partitions to keep unallocated space at the end
lastEnd = 0;
for (const auto &child : children()) {
qint64 totalSector = child->length();
qint64 totalSectors = child->length();
child->setFirstSector(lastEnd);
child->setLastSector(lastEnd + totalSector - 1);
child->setLastSector(lastEnd + totalSectors - 1);
lastEnd += totalSector;
lastEnd += totalSectors;
}
} else {
const auto pChildren = p->children();