fixed warnings.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24895 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
017d539c2a
commit
47908b9ae3
@ -98,7 +98,7 @@ bool
|
||||
AddMenuItemVisitor::Visit(BPartition *partition, int32 level)
|
||||
{
|
||||
if (!partition->ContainsFileSystem())
|
||||
return NULL;
|
||||
return false;
|
||||
|
||||
// get name (and eventually the type)
|
||||
BString name = partition->ContentName();
|
||||
@ -107,7 +107,7 @@ AddMenuItemVisitor::Visit(BPartition *partition, int32 level)
|
||||
if (name.Length() == 0) {
|
||||
const char *type = partition->ContentType();
|
||||
if (type == NULL)
|
||||
return NULL;
|
||||
return false;
|
||||
|
||||
name = "(unnamed ";
|
||||
name << type;
|
||||
|
Loading…
Reference in New Issue
Block a user