[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:
Adriaan de Groot 2020-11-02 15:40:32 +01:00
parent 486cdaeeb6
commit f78752303b
2 changed files with 2 additions and 16 deletions

View file

@ -34,7 +34,7 @@ public:
QString partLabel;
QString partUUID;
QString partType;
quint64 partAttributes;
quint64 partAttributes = 0;
QString partMountPoint;
FileSystem::Type partFileSystem = FileSystem::Unknown;
QVariantMap partFeatures;
@ -61,7 +61,7 @@ public:
const QString& minSize = QString(),
const QString& maxSize = QString() );
/// @brief Copy PartitionEntry
PartitionEntry( const PartitionEntry& e );
PartitionEntry( const PartitionEntry& e ) = default;
bool isValid() const
{