mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 01:15:38 -04:00
[partition] use C++11 initialization list for mountPoints
This commit is contained in:
parent
9b6f6341cb
commit
a62743185a
2 changed files with 2 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue