fixed warnings.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24895 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2008-04-10 20:48:38 +00:00
parent 017d539c2a
commit 47908b9ae3
1 changed files with 2 additions and 2 deletions

View File

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