[partition] Initialize in the initializer list, if possible

main
Adriaan de Groot 5 years ago
parent 51b47862cd
commit 44a11bd93b

@ -44,13 +44,13 @@ getDefaultFileSystemType()
}
PartitionLayout::PartitionLayout()
: m_defaultFsType( getDefaultFileSystemType() )
{
m_defaultFsType = getDefaultFileSystemType();
}
PartitionLayout::PartitionLayout( PartitionLayout::PartitionEntry entry )
: PartitionLayout()
{
m_defaultFsType = getDefaultFileSystemType();
m_partLayout.append( entry );
}

Loading…
Cancel
Save