diff --git a/widget/public/nsIMenu.h b/widget/public/nsIMenu.h index 5d535a7b1ba..b10826ee78f 100644 --- a/widget/public/nsIMenu.h +++ b/widget/public/nsIMenu.h @@ -53,7 +53,7 @@ class nsIMenu : public nsISupports { * Creates the Menu * */ - NS_IMETHOD Create ( nsISupports * aParent, const nsString &aLabel, const nsString &aAccessKey, + NS_IMETHOD Create ( nsISupports * aParent, const nsAReadableString &aLabel, const nsAReadableString &aAccessKey, nsIChangeManager* aManager, nsIWebShell* aShell, nsIDOMNode* aNode ) = 0; /** @@ -72,7 +72,7 @@ class nsIMenu : public nsISupports { * Set the Menu label * */ - NS_IMETHOD SetLabel(const nsString &aText) = 0; + NS_IMETHOD SetLabel(const nsAReadableString &aText) = 0; /** * Get the Menu Access Key @@ -84,7 +84,7 @@ class nsIMenu : public nsISupports { * Set the Menu Access Key * */ - NS_IMETHOD SetAccessKey(const nsString &aText) = 0; + NS_IMETHOD SetAccessKey(const nsAReadableString &aText) = 0; /** * Set the Menu enabled state diff --git a/widget/public/nsIMenuListener.h b/widget/public/nsIMenuListener.h index c4c78e62852..719c7110f02 100644 --- a/widget/public/nsIMenuListener.h +++ b/widget/public/nsIMenuListener.h @@ -80,7 +80,7 @@ class nsIMenuListener : public nsISupports { virtual nsEventStatus MenuDestruct(const nsMenuEvent & aMenuEvent) = 0; virtual nsEventStatus CheckRebuild(PRBool & aMenuEvent) = 0; - virtual nsEventStatus SetRebuild(PRBool & aMenuEvent) = 0; + virtual nsEventStatus SetRebuild(PRBool aMenuEvent) = 0; }; #endif // nsIMenuListener_h__