Bug 577920 - mark DEBUG only variables as ifdef DEBUG in cocoa. r=josh a=joe

This commit is contained in:
timeless@mozdev.org 2010-07-11 15:58:34 +03:00
parent 0d51752143
commit 03191da638

View File

@ -199,7 +199,11 @@ nsresult nsMenuX::Create(nsMenuObjectX* aParent, nsMenuGroupOwnerX* aMenuGroupOw
mParent = aParent;
// our parent could be either a menu bar (if we're toplevel) or a menu (if we're a submenu)
nsMenuObjectTypeX parentType = mParent->MenuObjectType();
#ifdef DEBUG
nsMenuObjectTypeX parentType =
#endif
mParent->MenuObjectType();
NS_ASSERTION((parentType == eMenuBarObjectType || parentType == eSubmenuObjectType || parentType == eStandaloneNativeMenuObjectType),
"Menu parent not a menu bar, menu, or native menu!");