Fix null statement and remove an unused variable

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4506 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
haydentech 2003-09-04 19:45:47 +00:00
parent d8ad69ebf2
commit a91e36bf1b

View File

@ -485,7 +485,7 @@ void BMenuField::InitObject(const char *label)
{
fLabel = NULL;
fMenu = NULL;
fMenuBar;
fMenuBar = NULL;
fAlign = B_ALIGN_LEFT;
fStringWidth = 0;
fEnabled = true;
@ -553,7 +553,6 @@ void BMenuField::InitMenu(BMenu *menu)
//------------------------------------------------------------------------------
long BMenuField::MenuTask(void *arg)
{
BRect rect;
BMenuField *menuField = (BMenuField*)arg;
if (!menuField->LockLooper())