Kaydet (Commit) c63ae748 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Adapt OS-X--only code to aa0d0536

..."tdf#97527 - vcl: reference-count Menu"

Change-Id: I47457205ae99025d2ca13965dcf2fac79962124a
üst ea6536a4
......@@ -88,7 +88,7 @@ public:
bool mbMenuBar; // true - Menubar, false - Menu
NSMenu* mpMenu; // The Carbon reference to this menu
Menu* mpVCLMenu; // the corresponding vcl Menu object
VclPtr<Menu> mpVCLMenu; // the corresponding vcl Menu object
const AquaSalFrame* mpFrame; // the frame to dispatch the menu events to
AquaSalMenu* mpParentSalMenu; // the parent menu that contains us (and perhaps has a frame)
......@@ -103,7 +103,7 @@ public:
virtual ~AquaSalMenuItem();
sal_uInt16 mnId; // Item ID
Menu* mpVCLMenu; // VCL Menu into which this MenuItem is inserted
VclPtr<Menu> mpVCLMenu; // VCL Menu into which this MenuItem is inserted
AquaSalMenu* mpParentMenu; // The menu in which this menu item is inserted
AquaSalMenu* mpSubMenu; // Sub menu of this item (if defined)
NSMenuItem* mpMenuItem; // The NSMenuItem
......
......@@ -257,7 +257,6 @@ void AquaSalInstance::DestroyMenuItem( SalMenuItem* pSalMenuItem )
AquaSalMenu::AquaSalMenu( bool bMenuBar ) :
mbMenuBar( bMenuBar ),
mpMenu( nil ),
mpVCLMenu( nullptr ),
mpFrame( nullptr ),
mpParentSalMenu( nullptr )
{
......
......@@ -125,7 +125,7 @@
// if an item from submenu was selected. the corresponding Window does not exist because
// we use native popup menus, so we have to set the selected menuitem directly
// incidentally this of course works for top level popup menus, too
PopupMenu * pPopupMenu = dynamic_cast<PopupMenu *>(mpMenuItem->mpVCLMenu);
PopupMenu * pPopupMenu = dynamic_cast<PopupMenu *>(mpMenuItem->mpVCLMenu.get());
if( pPopupMenu )
{
// FIXME: revise this ugly code
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment