mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 14:56:07 +00:00
fixing build breakage.
This commit is contained in:
parent
b5815dfa4f
commit
274dfd6e04
@ -507,7 +507,7 @@ void nsWebShellWindow::ConnectCommandToOneGUINode(
|
||||
nsString nodeCmdName;
|
||||
theNodeAsElement->GetAttribute(cmdAtom, nodeCmdName);
|
||||
nsCOMPtr<nsIXULCommand> cmd(FindCommandByName(nodeCmdName));
|
||||
if (nsnull != cmd) {
|
||||
if (cmd) {
|
||||
nsString guiDisplayName; // ok, this doesn't work. How do I get the button text? jrm
|
||||
theNodeAsElement->GetAttribute(nsAutoString("name"), guiDisplayName);
|
||||
#if 0
|
||||
@ -575,7 +575,7 @@ void nsWebShellWindow::LoadMenus(nsIDOMDocument * aDOMDoc, nsIWidget * aParentWi
|
||||
// Begin menuitem inner loop
|
||||
nsCOMPtr<nsIDOMNode> menuitemNode;
|
||||
menuNode->GetFirstChild(getter_AddRefs(menuitemNode));
|
||||
while (nsnull != menuitemNode) {
|
||||
while (menuitemNode) {
|
||||
nsCOMPtr<nsIDOMElement> menuitemElement(menuitemNode);
|
||||
if (menuitemElement) {
|
||||
nsString menuitemNodeType;
|
||||
|
Loading…
x
Reference in New Issue
Block a user