gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

strange code in NSMenuView.m


From: Matt Rice
Subject: strange code in NSMenuView.m
Date: Thu, 16 Mar 2006 17:23:55 -0800 (PST)

in -rectOfItemAtIndex:

theres some code in there that looks like
i figure that the == NO test is unneeded and the else
block can be removed, 

but i guess someone somewhere *could* be assigning to
it something other than YES or NO, in which case there
should probably be a comment explaining whats going on

if (_horizontal == YES)
{
  ....
}
else
{
  if (_horizontal == NO)
    {
      ....
    }
  else
    {
      ....
    }
}

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]