diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-08 14:41:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-09 13:12:47 +0200 |
commit | 7d521a85858bacdb7b5db359036ccf6f01b709c3 (patch) | |
tree | ee359fd27d55a0916e18e504d925949aa5b2a378 /vcl/inc/salinst.hxx | |
parent | b7abdafcfc42722ab060529864a2109d1e4198c0 (diff) |
hold and return SalMenu by std::unique_ptr
and drop DestroyMenu, all the implementations just delete the object
Change-Id: I673997ea1a9c5216b100cafdc70a8f697732769b
Reviewed-on: https://gerrit.libreoffice.org/55501
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/inc/salinst.hxx')
-rw-r--r-- | vcl/inc/salinst.hxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/inc/salinst.hxx b/vcl/inc/salinst.hxx index 3924ee3d497f..fa4fa92d3289 100644 --- a/vcl/inc/salinst.hxx +++ b/vcl/inc/salinst.hxx @@ -152,8 +152,7 @@ public: virtual bool AnyInput( VclInputFlags nType ) = 0; // menus - virtual SalMenu* CreateMenu( bool bMenuBar, Menu* pMenu ); - virtual void DestroyMenu( SalMenu* pMenu); + virtual std::unique_ptr<SalMenu> CreateMenu( bool bMenuBar, Menu* pMenu ); virtual std::unique_ptr<SalMenuItem> CreateMenuItem( const SalItemParams& pItemData ); // may return NULL to disable session management, only used by X11 backend |