mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 18:35:37 -04:00
[partition] Remove the call the method contains
- The variant helper getString() calls contains() already.
This commit is contained in:
parent
d6ea30b23e
commit
db7cf74034
1 changed files with 3 additions and 3 deletions
|
@ -160,7 +160,7 @@ PartitionLayout::init( const QVariantList& config )
|
|||
break;
|
||||
}
|
||||
|
||||
if ( pentry.contains( "size" ) && CalamaresUtils::getString( pentry, "size" ).isEmpty() )
|
||||
if ( CalamaresUtils::getString( pentry, "size" ).isEmpty() )
|
||||
{
|
||||
sizeString.setNum( CalamaresUtils::getInteger( pentry, "size", 0 ) );
|
||||
}
|
||||
|
@ -169,7 +169,7 @@ PartitionLayout::init( const QVariantList& config )
|
|||
sizeString = CalamaresUtils::getString( pentry, "size" );
|
||||
}
|
||||
|
||||
if ( pentry.contains( "minSize" ) && CalamaresUtils::getString( pentry, "minSize" ).isEmpty() )
|
||||
if ( CalamaresUtils::getString( pentry, "minSize" ).isEmpty() )
|
||||
{
|
||||
minSizeString.setNum( CalamaresUtils::getInteger( pentry, "minSize", 0 ) );
|
||||
}
|
||||
|
@ -178,7 +178,7 @@ PartitionLayout::init( const QVariantList& config )
|
|||
minSizeString = CalamaresUtils::getString( pentry, "minSize" );
|
||||
}
|
||||
|
||||
if ( pentry.contains( "maxSize" ) && CalamaresUtils::getString( pentry, "maxSize" ).isEmpty() )
|
||||
if ( CalamaresUtils::getString( pentry, "maxSize" ).isEmpty() )
|
||||
{
|
||||
maxSizeString.setNum( CalamaresUtils::getInteger( pentry, "maxSize", 0 ) );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue