mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-01 19:35:36 -04:00
[partition] Improve constructors for layout
- initialize flags by default - the copy constructor was just doing the default thing, so make that explicit
This commit is contained in:
parent
486cdaeeb6
commit
f78752303b
2 changed files with 2 additions and 16 deletions
|
@ -95,20 +95,6 @@ PartitionLayout::PartitionEntry::PartitionEntry( const QString& label,
|
||||||
PartUtils::findFS( fs, &partFileSystem );
|
PartUtils::findFS( fs, &partFileSystem );
|
||||||
}
|
}
|
||||||
|
|
||||||
PartitionLayout::PartitionEntry::PartitionEntry( const PartitionEntry& e )
|
|
||||||
: partLabel( e.partLabel )
|
|
||||||
, partUUID( e.partUUID )
|
|
||||||
, partType( e.partType )
|
|
||||||
, partAttributes( e.partAttributes )
|
|
||||||
, partMountPoint( e.partMountPoint )
|
|
||||||
, partFileSystem( e.partFileSystem )
|
|
||||||
, partFeatures( e.partFeatures )
|
|
||||||
, partSize( e.partSize )
|
|
||||||
, partMinSize( e.partMinSize )
|
|
||||||
, partMaxSize( e.partMaxSize )
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
PartitionLayout::addEntry( const PartitionEntry& entry )
|
PartitionLayout::addEntry( const PartitionEntry& entry )
|
||||||
|
|
|
@ -34,7 +34,7 @@ public:
|
||||||
QString partLabel;
|
QString partLabel;
|
||||||
QString partUUID;
|
QString partUUID;
|
||||||
QString partType;
|
QString partType;
|
||||||
quint64 partAttributes;
|
quint64 partAttributes = 0;
|
||||||
QString partMountPoint;
|
QString partMountPoint;
|
||||||
FileSystem::Type partFileSystem = FileSystem::Unknown;
|
FileSystem::Type partFileSystem = FileSystem::Unknown;
|
||||||
QVariantMap partFeatures;
|
QVariantMap partFeatures;
|
||||||
|
@ -61,7 +61,7 @@ public:
|
||||||
const QString& minSize = QString(),
|
const QString& minSize = QString(),
|
||||||
const QString& maxSize = QString() );
|
const QString& maxSize = QString() );
|
||||||
/// @brief Copy PartitionEntry
|
/// @brief Copy PartitionEntry
|
||||||
PartitionEntry( const PartitionEntry& e );
|
PartitionEntry( const PartitionEntry& e ) = default;
|
||||||
|
|
||||||
bool isValid() const
|
bool isValid() const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue