[partition] Chase namespace change for Units
This commit is contained in:
parent
9f17d3fd12
commit
98524708cc
@ -29,10 +29,10 @@
|
||||
|
||||
#include <QDir>
|
||||
|
||||
using namespace CalamaresUtils::Units;
|
||||
|
||||
namespace PartitionActions
|
||||
{
|
||||
using CalamaresUtils::operator""_GiB;
|
||||
using CalamaresUtils::operator""_MiB;
|
||||
|
||||
qint64
|
||||
swapSuggestion( const qint64 availableSpaceB, Config::SwapChoice swap )
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include <QMouseEvent>
|
||||
#include <QPainter>
|
||||
|
||||
using CalamaresUtils::operator""_MiB;
|
||||
using namespace CalamaresUtils::Units;
|
||||
|
||||
static const int LAYOUT_MARGIN = 4;
|
||||
static const int LABEL_PARTITION_SQUARE_MARGIN = qMax( QFontMetrics( CalamaresUtils::defaultFont() ).ascent() - 2, 18 );
|
||||
|
@ -19,6 +19,8 @@
|
||||
|
||||
#include <QtTest/QtTest>
|
||||
|
||||
using namespace CalamaresUtils::Units;
|
||||
|
||||
class PartitionTable;
|
||||
class SmartStatus;
|
||||
|
||||
@ -27,9 +29,6 @@ QTEST_GUILESS_MAIN( CreateLayoutsTests )
|
||||
static CalamaresUtils::Partition::KPMManager* kpmcore = nullptr;
|
||||
static Calamares::JobQueue* jobqueue = nullptr;
|
||||
|
||||
using CalamaresUtils::operator""_MiB;
|
||||
using CalamaresUtils::operator""_GiB;
|
||||
|
||||
#define LOGICAL_SIZE 512
|
||||
|
||||
CreateLayoutsTests::CreateLayoutsTests()
|
||||
|
@ -28,8 +28,7 @@
|
||||
QTEST_GUILESS_MAIN( PartitionJobTests )
|
||||
|
||||
using namespace Calamares;
|
||||
using CalamaresUtils::operator""_MiB;
|
||||
using CalamaresUtils::Partition::isPartitionFreeSpace;
|
||||
using namespace CalamaresUtils::Units;
|
||||
|
||||
class PartitionMounter
|
||||
{
|
||||
@ -104,7 +103,7 @@ static Partition*
|
||||
firstFreePartition( PartitionNode* parent )
|
||||
{
|
||||
for ( auto child : parent->children() )
|
||||
if ( isPartitionFreeSpace( child ) )
|
||||
if ( CalamaresUtils::Partition::isPartitionFreeSpace( child ) )
|
||||
{
|
||||
return child;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user