From 9ce638238cf1b993062a70271eed3e9454fedeb0 Mon Sep 17 00:00:00 2001 From: Volker Lanz Date: Mon, 29 Aug 2011 21:40:43 +0000 Subject: [PATCH] return NULL when return type is bool doesn't seem such a good idea. svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1250211 --- src/core/partitiontable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/partitiontable.cpp b/src/core/partitiontable.cpp index c2803ea..5b64e67 100644 --- a/src/core/partitiontable.cpp +++ b/src/core/partitiontable.cpp @@ -224,7 +224,7 @@ bool PartitionTable::getUnallocatedRange(const Device& device, PartitionNode& pa if (extended == NULL) { kWarning() << "extended is null. start: " << start << ", end: " << end << ", device: " << device.deviceNode(); - return NULL; + return false; } // Leave a track (cylinder aligned) or sector alignment sectors (sector based) free at the