mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 02:45:44 -05:00
nullptr safety.
This commit is contained in:
parent
754cfc78b3
commit
18b6e56271
1 changed files with 6 additions and 0 deletions
|
@ -38,6 +38,9 @@ namespace PartUtils
|
|||
bool
|
||||
canBeReplaced( Partition* candidate )
|
||||
{
|
||||
if ( !candidate )
|
||||
return false;
|
||||
|
||||
bool ok = false;
|
||||
double requiredStorageGB = Calamares::JobQueue::instance()
|
||||
->globalStorage()
|
||||
|
@ -65,6 +68,9 @@ canBeReplaced( Partition* candidate )
|
|||
bool
|
||||
canBeResized( Partition* candidate )
|
||||
{
|
||||
if ( !candidate )
|
||||
return false;
|
||||
|
||||
if ( !candidate->fileSystem().supportGrow() ||
|
||||
!candidate->fileSystem().supportShrink() )
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue