зеркало из https://github.com/mozilla/gecko-dev.git
Bug 577920 - mark DEBUG only variables as ifdef DEBUG in cocoa. r=josh a=joe
This commit is contained in:
Родитель
e0c4c8556d
Коммит
a3d6dee057
|
@ -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!");
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче