diff options
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/app/salvtables.cxx | 7 | ||||
-rw-r--r-- | vcl/source/window/menu.cxx | 4 |
2 files changed, 2 insertions, 9 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index d5ac7c95e513..00ff6c6a9090 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -87,17 +87,12 @@ std::unique_ptr<SalSession> SalInstance::CreateSalSession() return nullptr; } -SalMenu* SalInstance::CreateMenu( bool, Menu* ) +std::unique_ptr<SalMenu> SalInstance::CreateMenu( bool, Menu* ) { // default: no native menus return nullptr; } -void SalInstance::DestroyMenu( SalMenu* pMenu ) -{ - OSL_ENSURE( pMenu == nullptr, "DestroyMenu called with non-native menus" ); -} - std::unique_ptr<SalMenuItem> SalInstance::CreateMenuItem( const SalItemParams & ) { return nullptr; diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index ce19d83b85de..cf509a91374a 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -2302,9 +2302,7 @@ OUString Menu::GetAccessibleName( sal_uInt16 nItemId ) const void Menu::ImplClearSalMenu() { - if( mpSalMenu ) - ImplGetSVData()->mpDefInst->DestroyMenu( mpSalMenu ); - mpSalMenu = nullptr; + mpSalMenu.reset(); } void Menu::GetSystemMenuData( SystemMenuData* pData ) const |