Small changes, nothing important

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15942 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2006-01-13 20:49:41 +00:00
parent fc3a8a1c73
commit b5cd88a5c7
3 changed files with 25 additions and 26 deletions
+3 -3
View File
@@ -157,12 +157,12 @@ BOptionPopUp::AddOptionAt(const char *name, int32 value, int32 index)
BMessage *message = MakeValueMessage(value);
if (message == NULL)
return B_ERROR; // TODO: Should return B_NO_MEMORY instead ?
return B_NO_MEMORY;
BMenuItem *newItem = new BMenuItem(name, message);
if (newItem == NULL) {
delete message;
return B_ERROR; // TODO: same as above
return B_NO_MEMORY;
}
menu->AddItem(newItem, index);
@@ -355,7 +355,7 @@ BOptionPopUp::BOptionPopUp(const BOptionPopUp &clone)
BOptionPopUp &
BOptionPopUp::operator=(const BOptionPopUp & clone)
{
return *this;
return *this;
}