return NULL when return type is bool doesn't seem such a good idea.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1250211
This commit is contained in:
Volker Lanz 2011-08-29 21:40:43 +00:00
parent b4d02bda27
commit 9ce638238c
1 changed files with 1 additions and 1 deletions

View File

@ -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