From 94876fe2704cb5107234ad76c86122ac9d95f866 Mon Sep 17 00:00:00 2001 From: Maxim Monastirsky Date: Sun, 30 Oct 2016 14:34:18 +0200 Subject: Let Menu dispose submenus (I'm not sure about how good are the changes from ScopedVclPtr to non-scoped, and disposeAndClear to clear. They aren't really needed, because of the VclReferenceBase::mbDisposed logic. But at least they should be safe, as long as we have disposeOnce calls in Menu's dtor.) See also previous commits: 4433d95b374c13a3501cdf3a6e273f68eb49873a ("MenuItemData now properly disposes the submenu") 89c23b4aaef931b5d6009efaf44ce6e6c976e8d4 ("Sub menus no longer need manual disposing") Change-Id: I9d455a94590f5eec9b097947f6984f1b3e477b52 --- sc/source/ui/navipi/content.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sc') diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx index fd5bb59af9d4..5139c369dc80 100644 --- a/sc/source/ui/navipi/content.cxx +++ b/sc/source/ui/navipi/content.cxx @@ -580,14 +580,14 @@ void ScContentTree::Command( const CommandEvent& rCEvt ) // Drag-Drop Modus ScopedVclPtrInstance aPop; - ScopedVclPtrInstance aDropMenu( ScResId( RID_POPUP_DROPMODE ) ); + VclPtrInstance aDropMenu( ScResId( RID_POPUP_DROPMODE ) ); aDropMenu->CheckItem( RID_DROPMODE_URL + pParentWindow->GetDropMode() ); aPop->InsertItem( 1, pParentWindow->GetStrDragMode() ); aPop->SetPopupMenu( 1, aDropMenu.get() ); // angezeigtes Dokument - ScopedVclPtrInstance aDocMenu; + VclPtrInstance aDocMenu; aDocMenu->SetMenuFlags( aDocMenu->GetMenuFlags() | MenuFlags::NoAutoMnemonics ); sal_uInt16 i=0; sal_uInt16 nPos=0; -- cgit