From 8fe4652b632cf776a626f870320a7699c6d7890d Mon Sep 17 00:00:00 2001 From: "saari%netscape.com" Date: Thu, 4 Feb 1999 11:16:40 +0000 Subject: [PATCH] Updating the unix's widget factories for the menu changes --- widget/src/build/nsGTKWidgetFactory.cpp | 6 +++--- widget/src/build/nsMotifWidgetFactory.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/widget/src/build/nsGTKWidgetFactory.cpp b/widget/src/build/nsGTKWidgetFactory.cpp index a551aa71577..d1decbd80d6 100644 --- a/widget/src/build/nsGTKWidgetFactory.cpp +++ b/widget/src/build/nsGTKWidgetFactory.cpp @@ -220,13 +220,13 @@ nsresult nsWidgetFactory::CreateInstance(nsISupports *aOuter, inst = (nsISupports*)(nsWidget *)new nsLabel(); } else if (mClassID.Equals(kCMenuBar)) { - inst = (nsISupports*)(nsWidget *)new nsMenuBar(); + inst = (nsISupports*)(nsIMenuBar *)new nsMenuBar(); } else if (mClassID.Equals(kCMenu)) { - inst = (nsISupports*)(nsWidget *)new nsMenu(); + inst = (nsISupports*)(nsIMenu *)new nsMenu(); } else if (mClassID.Equals(kCMenuItem)) { - inst = (nsISupports*)(nsWidget *)new nsMenuItem(); + inst = (nsISupports*)(nsIMenuItem *)new nsMenuItem(); } else if (mClassID.Equals(kCImageButton)) { inst = (nsISupports*)(nsWidget *)new nsImageButton(); diff --git a/widget/src/build/nsMotifWidgetFactory.cpp b/widget/src/build/nsMotifWidgetFactory.cpp index 9fb8b18c49e..ef714c2cca5 100644 --- a/widget/src/build/nsMotifWidgetFactory.cpp +++ b/widget/src/build/nsMotifWidgetFactory.cpp @@ -207,13 +207,13 @@ nsresult nsWidgetFactory::CreateInstance(nsISupports *aOuter, inst = (nsISupports *)(nsIWidget *)new nsLabel(); } else if (mClassID.Equals(kCMenuBar)) { - inst = (nsISupports*)new nsMenuBar(); + inst = (nsISupports*)(nsIMenuBar *)new nsMenuBar(); } else if (mClassID.Equals(kCMenu)) { - inst = (nsISupports*)new nsMenu(); + inst = (nsISupports*)(nsIMenu *)new nsMenu(); } else if (mClassID.Equals(kCMenuItem)) { - inst = (nsISupports*)new nsMenuItem(); + inst = (nsISupports*)(nsIMenuItem *)new nsMenuItem(); } else if (mClassID.Equals(kCImageButton)) { inst = (nsISupports*)(nsWindow*)new nsImageButton();