[partition] Initialize in the initializer list, if possible

This commit is contained in:
Adriaan de Groot 2020-10-23 22:27:30 +02:00
parent 51b47862cd
commit 44a11bd93b

View File

@ -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 );
} }