[partition] use C++11 initialization list for mountPoints
This commit is contained in:
parent
9b6f6341cb
commit
a62743185a
@ -55,8 +55,7 @@ CreatePartitionDialog::CreatePartitionDialog( Device* device, PartitionNode* par
|
||||
{
|
||||
m_ui->setupUi( this );
|
||||
|
||||
QStringList mountPoints;
|
||||
mountPoints << "/" << "/boot" << "/home" << "/opt" << "/usr" << "/var";
|
||||
QStringList mountPoints = { "/", "/boot", "/home", "/opt", "/usr", "/var" };
|
||||
if ( QDir( "/sys/firmware/efi/efivars" ).exists() )
|
||||
mountPoints << Calamares::JobQueue::instance()->globalStorage()->value( "efiSystemPartition" ).toString();
|
||||
mountPoints.removeDuplicates();
|
||||
|
@ -48,8 +48,7 @@ EditExistingPartitionDialog::EditExistingPartitionDialog( Device* device, Partit
|
||||
{
|
||||
m_ui->setupUi( this );
|
||||
|
||||
QStringList mountPoints;
|
||||
mountPoints << "/" << "/boot" << "/home" << "/opt" << "/usr" << "/var";
|
||||
QStringList mountPoints = { "/", "/boot", "/home", "/opt", "/usr", "/var" };
|
||||
if ( QDir( "/sys/firmware/efi/efivars" ).exists() )
|
||||
mountPoints << Calamares::JobQueue::instance()->globalStorage()->value( "efiSystemPartition" ).toString();
|
||||
mountPoints.removeDuplicates();
|
||||
|
Loading…
Reference in New Issue
Block a user