1From 9af84e1c08a2159c10baf13244e2c8a7d7e837e9 Mon Sep 17 00:00:00 2001 2From: Khem Raj <raj.khem@gmail.com> 3Date: Thu, 27 Jan 2022 23:02:20 -0800 4Subject: [PATCH] Do not use NULL where boolean is expected 5 6Fixes 7src/GParted_Core.cc:73:57: error: static_cast from 'nullptr_t' to 'PedPartitionFlag' (aka '_PedPartitionFlag') is not allowed 8| for ( PedPartitionFlag flag = ped_partition_flag_next( static_cast<PedPartitionFlag>( NULL ) ) ; 9| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 10| 1 error generated. 11 12Upstream-Status: Pending 13Signed-off-by: Khem Raj <raj.khem@gmail.com> 14--- 15 src/GParted_Core.cc | 2 +- 16 1 file changed, 1 insertion(+), 1 deletion(-) 17 18diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc 19index f7ac970..3290c66 100644 20--- a/src/GParted_Core.cc 21+++ b/src/GParted_Core.cc 22@@ -70,7 +70,7 @@ GParted_Core::GParted_Core() 23 ped_exception_set_handler( ped_exception_handler ) ; 24 25 //get valid flags ... 26- for ( PedPartitionFlag flag = ped_partition_flag_next( static_cast<PedPartitionFlag>( NULL ) ) ; 27+ for ( PedPartitionFlag flag = ped_partition_flag_next( static_cast<PedPartitionFlag>( false ) ) ; 28 flag ; 29 flag = ped_partition_flag_next( flag ) ) 30 flags .push_back( flag ) ; 31-- 322.35.0 33 34