[partition] Initialize the filesystem type, not the partition type

- Passing FileSystem::Type to the QString constructor for
  partition type is not what I intended.
This commit is contained in:
Adriaan de Groot 2020-11-02 22:32:44 +01:00
parent 73b5a0898d
commit ffce79e30e
2 changed files with 4 additions and 4 deletions

View File

@ -41,14 +41,14 @@ PartitionLayout::PartitionEntry::PartitionEntry()
{
}
PartitionLayout::PartitionEntry::PartitionEntry( FileSystem::Type type,
PartitionLayout::PartitionEntry::PartitionEntry( FileSystem::Type fs,
const QString& mountPoint,
const QString& size,
const QString& minSize,
const QString& maxSize )
: partType( type )
, partAttributes( 0 )
: partAttributes( 0 )
, partMountPoint( mountPoint )
, partFileSystem( fs )
, partSize( size )
, partMinSize( minSize )
, partMaxSize( maxSize )

View File

@ -49,7 +49,7 @@ public:
* Sets a specific FS type (not parsed from string like the other
* constructor).
*/
PartitionEntry( FileSystem::Type type,
PartitionEntry( FileSystem::Type fs,
const QString& mountPoint,
const QString& size,
const QString& minSize = QString(),