From 0c8035f667a7375c9dc49a1a454177f463ecf7df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Thu, 10 Nov 2016 14:37:48 +0000 Subject: [PATCH] Improve wording in comments a bit. --- src/core/partitiontable.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/partitiontable.cpp b/src/core/partitiontable.cpp index df68773..2dca846 100644 --- a/src/core/partitiontable.cpp +++ b/src/core/partitiontable.cpp @@ -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();