[gparted] Prefer enum to string comparison in set_partition_type()
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Prefer enum to string comparison in set_partition_type()
- Date: Mon, 15 Apr 2019 18:52:00 +0000 (UTC)
commit 8ea0b7ef13c113ee04730821353743fea902aaf1
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date: Sat Apr 13 13:03:16 2019 +0100
Prefer enum to string comparison in set_partition_type()
src/GParted_Core.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc
index fa3261ea..0f547b89 100644
--- a/src/GParted_Core.cc
+++ b/src/GParted_Core.cc
@@ -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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]