fixing build break
change AddItem to AddMenuItem git-svn-id: svn://10.0.0.236/trunk@18781 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -171,7 +171,7 @@ NS_METHOD nsMenuItem::Create(nsIMenu *aParent,
|
||||
}
|
||||
|
||||
Create(widget, GetNativeParent(), aLabel, aCommand);
|
||||
aParent->AddItem(this);
|
||||
aParent->AddMenuItem(this);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ NS_METHOD nsMenuItem::Create(nsIMenu * aParent, const nsString &aLabel, PRUint32
|
||||
{
|
||||
mCommand = aCommand;
|
||||
mLabel = aLabel;
|
||||
aParent->AddItem(this);
|
||||
aParent->AddMenuItem(this);
|
||||
|
||||
nsISupports * sups;
|
||||
if (NS_OK == aParent->QueryInterface(kISupportsIID,(void**)&sups)) {
|
||||
|
||||
Reference in New Issue
Block a user