[partition] Initialize in the initializer list, if possible
This commit is contained in:
parent
51b47862cd
commit
44a11bd93b
@ -44,13 +44,13 @@ getDefaultFileSystemType()
|
|||||||
}
|
}
|
||||||
|
|
||||||
PartitionLayout::PartitionLayout()
|
PartitionLayout::PartitionLayout()
|
||||||
|
: m_defaultFsType( getDefaultFileSystemType() )
|
||||||
{
|
{
|
||||||
m_defaultFsType = getDefaultFileSystemType();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PartitionLayout::PartitionLayout( PartitionLayout::PartitionEntry entry )
|
PartitionLayout::PartitionLayout( PartitionLayout::PartitionEntry entry )
|
||||||
|
: PartitionLayout()
|
||||||
{
|
{
|
||||||
m_defaultFsType = getDefaultFileSystemType();
|
|
||||||
m_partLayout.append( entry );
|
m_partLayout.append( entry );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user