[partition] Avoid "shadowing" of fields by constructor parameters
Although the standard is clear about what this means, Clang warns about it, so change names to avoid the warning (and make it slightly easier to read).
This commit is contained in:
parent
4bba7ed893
commit
ea90ca4118
@ -37,11 +37,11 @@ struct ReplacePartitionOptions
|
|||||||
ReplacePartitionOptions( const QString& pt,
|
ReplacePartitionOptions( const QString& pt,
|
||||||
const QString& fs,
|
const QString& fs,
|
||||||
Config::LuksGeneration luksFs,
|
Config::LuksGeneration luksFs,
|
||||||
const QString& luksPassphrase )
|
const QString& passphrase )
|
||||||
: defaultPartitionTableType( pt )
|
: defaultPartitionTableType( pt )
|
||||||
, defaultFsType( fs )
|
, defaultFsType( fs )
|
||||||
, luksFsType( luksFs )
|
, luksFsType( luksFs )
|
||||||
, luksPassphrase( luksPassphrase )
|
, luksPassphrase( passphrase )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -55,11 +55,11 @@ struct AutoPartitionOptions : ReplacePartitionOptions
|
|||||||
AutoPartitionOptions( const QString& pt,
|
AutoPartitionOptions( const QString& pt,
|
||||||
const QString& fs,
|
const QString& fs,
|
||||||
Config::LuksGeneration luksFs,
|
Config::LuksGeneration luksFs,
|
||||||
const QString& luksPassphrase,
|
const QString& passphrase,
|
||||||
const QString& efi,
|
const QString& efi,
|
||||||
qint64 requiredBytes,
|
qint64 requiredBytes,
|
||||||
Config::SwapChoice s )
|
Config::SwapChoice s )
|
||||||
: ReplacePartitionOptions( pt, fs, luksFs, luksPassphrase )
|
: ReplacePartitionOptions( pt, fs, luksFs, passphrase )
|
||||||
, efiPartitionMountPoint( efi )
|
, efiPartitionMountPoint( efi )
|
||||||
, requiredSpaceB( requiredBytes > 0 ? quint64( requiredBytes ) : 0U )
|
, requiredSpaceB( requiredBytes > 0 ? quint64( requiredBytes ) : 0U )
|
||||||
, swap( s )
|
, swap( s )
|
||||||
|
Loading…
Reference in New Issue
Block a user