Commit 8ea0b7ef authored by Mike Fleetwood's avatar Mike Fleetwood Committed by Curtis Gedak

Prefer enum to string comparison in set_partition_type()

parent ab1381b1
Pipeline #75544 passed with stages
in 17 minutes and 59 seconds
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment