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

View File

@ -98,7 +98,7 @@ bool
AddMenuItemVisitor::Visit(BPartition *partition, int32 level) AddMenuItemVisitor::Visit(BPartition *partition, int32 level)
{ {
if (!partition->ContainsFileSystem()) if (!partition->ContainsFileSystem())
return NULL; return false;
// get name (and eventually the type) // get name (and eventually the type)
BString name = partition->ContentName(); BString name = partition->ContentName();
@ -107,7 +107,7 @@ AddMenuItemVisitor::Visit(BPartition *partition, int32 level)
if (name.Length() == 0) { if (name.Length() == 0) {
const char *type = partition->ContentType(); const char *type = partition->ContentType();
if (type == NULL) if (type == NULL)
return NULL; return false;
name = "(unnamed "; name = "(unnamed ";
name << type; name << type;