From 5aff52a7c2fa7b77654d9e68bcf59260bb7cd066 Mon Sep 17 00:00:00 2001 From: "saari%netscape.com" Date: Fri, 5 Mar 1999 07:31:54 +0000 Subject: [PATCH] Fixing menus on Win32 --- widget/src/windows/nsMenu.cpp | 2 +- widget/src/windows/nsMenuBar.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/widget/src/windows/nsMenu.cpp b/widget/src/windows/nsMenu.cpp index cc6e4892d66..86d1f6f539d 100644 --- a/widget/src/windows/nsMenu.cpp +++ b/widget/src/windows/nsMenu.cpp @@ -81,7 +81,7 @@ nsMenu::nsMenu() : nsIMenu() mMenuBarParent = nsnull; mMenuParent = nsnull; mListener = nsnull; - mItems = new nsVoidArray(8); + mItems = new nsVoidArray; } //------------------------------------------------------------------------- diff --git a/widget/src/windows/nsMenuBar.cpp b/widget/src/windows/nsMenuBar.cpp index 0a53e6dca5d..b8171ebe656 100644 --- a/widget/src/windows/nsMenuBar.cpp +++ b/widget/src/windows/nsMenuBar.cpp @@ -90,7 +90,7 @@ nsMenuBar::nsMenuBar() : nsIMenuBar(), nsIMenuListener() mMenu = nsnull; mParent = nsnull; mIsMenuBarAdded = PR_FALSE; - mItems = new nsVoidArray(16); + mItems = new nsVoidArray; } //-------------------------------------------------------------------------