Prefer enum to string comparison in set_partition_type()

This commit is contained in:
Mike Fleetwood 2019-04-13 13:03:16 +01:00 committed by Curtis Gedak
parent ab1381b1f4
commit 8ea0b7ef13
1 changed files with 1 additions and 1 deletions

View File

@ -3558,7 +3558,7 @@ bool GParted_Core::set_partition_type( const Partition & partition, OperationDet
// Actually MBR 07 IFS (Microsoft Installable File System) or
// GPT BDP (Windows Basic Data Partition).
// Ref: https://serverfault.com/a/829172
if ( ! lp_fs_type && fs_type == "udf" )
if (! lp_fs_type && partition.filesystem == FS_UDF)
lp_fs_type = ped_file_system_type_get( "ntfs" );
// default is Linux (83)