[partition] Move bytesToSectors() to CalamaresUtils namespace

In order to prepare for future refactoring of the PartSize class, move
the bytesToSectors() function to libcalamares in the CalamaresUtils
namespace.

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
This commit is contained in:
Arnaud Ferraris 2019-05-08 19:20:38 +02:00
parent b840bce22d
commit 36bc0e6308
4 changed files with 17 additions and 17 deletions

View file

@ -101,7 +101,7 @@ PartSize::toSectors( qint64 totalSectors, qint64 sectorSize ) const
case unit_t::KiB:
case unit_t::MiB:
case unit_t::GiB:
return bytesToSectors ( toBytes(), sectorSize );
return CalamaresUtils::bytesToSectors ( toBytes(), sectorSize );
}
return -1;