[partition] fix naming of PartitionLayout class member variables
Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
This commit is contained in:
parent
586cb63ef5
commit
5084c44b54
@ -45,18 +45,18 @@ getDefaultFileSystemType()
|
|||||||
|
|
||||||
PartitionLayout::PartitionLayout()
|
PartitionLayout::PartitionLayout()
|
||||||
{
|
{
|
||||||
defaultFsType = getDefaultFileSystemType();
|
m_defaultFsType = getDefaultFileSystemType();
|
||||||
}
|
}
|
||||||
|
|
||||||
PartitionLayout::PartitionLayout( PartitionLayout::PartitionEntry entry )
|
PartitionLayout::PartitionLayout( PartitionLayout::PartitionEntry entry )
|
||||||
{
|
{
|
||||||
defaultFsType = getDefaultFileSystemType();
|
m_defaultFsType = getDefaultFileSystemType();
|
||||||
partLayout.append( entry );
|
m_partLayout.append( entry );
|
||||||
}
|
}
|
||||||
|
|
||||||
PartitionLayout::PartitionLayout( const PartitionLayout& layout )
|
PartitionLayout::PartitionLayout( const PartitionLayout& layout )
|
||||||
: partLayout( layout.partLayout )
|
: m_partLayout( layout.m_partLayout )
|
||||||
, defaultFsType( layout.defaultFsType )
|
, m_defaultFsType( layout.m_defaultFsType )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ PartitionLayout::~PartitionLayout()
|
|||||||
void
|
void
|
||||||
PartitionLayout::addEntry( PartitionLayout::PartitionEntry entry )
|
PartitionLayout::addEntry( PartitionLayout::PartitionEntry entry )
|
||||||
{
|
{
|
||||||
partLayout.append( entry );
|
m_partLayout.append( entry );
|
||||||
}
|
}
|
||||||
|
|
||||||
static double
|
static double
|
||||||
@ -133,9 +133,9 @@ PartitionLayout::addEntry( const QString& mountPoint, const QString& size, const
|
|||||||
PartitionLayout::PartitionEntry entry( size, min );
|
PartitionLayout::PartitionEntry entry( size, min );
|
||||||
|
|
||||||
entry.partMountPoint = mountPoint;
|
entry.partMountPoint = mountPoint;
|
||||||
entry.partFileSystem = defaultFsType;
|
entry.partFileSystem = m_defaultFsType;
|
||||||
|
|
||||||
partLayout.append( entry );
|
m_partLayout.append( entry );
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -147,9 +147,9 @@ PartitionLayout::addEntry( const QString& label, const QString& mountPoint, cons
|
|||||||
entry.partMountPoint = mountPoint;
|
entry.partMountPoint = mountPoint;
|
||||||
entry.partFileSystem = FileSystem::typeForName( fs );
|
entry.partFileSystem = FileSystem::typeForName( fs );
|
||||||
if ( entry.partFileSystem == FileSystem::Unknown )
|
if ( entry.partFileSystem == FileSystem::Unknown )
|
||||||
entry.partFileSystem = defaultFsType;
|
entry.partFileSystem = m_defaultFsType;
|
||||||
|
|
||||||
partLayout.append( entry );
|
m_partLayout.append( entry );
|
||||||
}
|
}
|
||||||
|
|
||||||
static qint64
|
static qint64
|
||||||
@ -195,7 +195,7 @@ PartitionLayout::execute( Device *dev, qint64 firstSector,
|
|||||||
// TODO: Refine partition sizes to make sure there is room for every partition
|
// TODO: Refine partition sizes to make sure there is room for every partition
|
||||||
// Use a default (200-500M ?) minimum size for partition without minSize
|
// Use a default (200-500M ?) minimum size for partition without minSize
|
||||||
|
|
||||||
foreach( const PartitionLayout::PartitionEntry& part, partLayout )
|
foreach( const PartitionLayout::PartitionEntry& part, m_partLayout )
|
||||||
{
|
{
|
||||||
Partition *currentPartition = nullptr;
|
Partition *currentPartition = nullptr;
|
||||||
|
|
||||||
|
@ -76,8 +76,8 @@ public:
|
|||||||
QList< Partition* > execute( Device *dev, qint64 firstSector, qint64 lastSector, QString luksPassphrase, PartitionNode* parent, const PartitionRole& role );
|
QList< Partition* > execute( Device *dev, qint64 firstSector, qint64 lastSector, QString luksPassphrase, PartitionNode* parent, const PartitionRole& role );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int defaultFsType;
|
int m_defaultFsType;
|
||||||
QList< PartitionEntry > partLayout;
|
QList< PartitionEntry > m_partLayout;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* PARTITIONLAYOUT_H */
|
#endif /* PARTITIONLAYOUT_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user