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:
parent
d8ad69ebf2
commit
a91e36bf1b
@ -485,7 +485,7 @@ void BMenuField::InitObject(const char *label)
|
|||||||
{
|
{
|
||||||
fLabel = NULL;
|
fLabel = NULL;
|
||||||
fMenu = NULL;
|
fMenu = NULL;
|
||||||
fMenuBar;
|
fMenuBar = NULL;
|
||||||
fAlign = B_ALIGN_LEFT;
|
fAlign = B_ALIGN_LEFT;
|
||||||
fStringWidth = 0;
|
fStringWidth = 0;
|
||||||
fEnabled = true;
|
fEnabled = true;
|
||||||
@ -553,7 +553,6 @@ void BMenuField::InitMenu(BMenu *menu)
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
long BMenuField::MenuTask(void *arg)
|
long BMenuField::MenuTask(void *arg)
|
||||||
{
|
{
|
||||||
BRect rect;
|
|
||||||
BMenuField *menuField = (BMenuField*)arg;
|
BMenuField *menuField = (BMenuField*)arg;
|
||||||
|
|
||||||
if (!menuField->LockLooper())
|
if (!menuField->LockLooper())
|
||||||
|
Loading…
Reference in New Issue
Block a user