diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-09-28 13:06:39 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-09-28 13:07:03 +0200 |
commit | d5b87dcce119f0cd69e65873833d98ed1660f9d0 (patch) | |
tree | 8cb637f751eef1225487f7a38fefd84b22b5d44d /sw/source/uibase/inc/conttree.hxx | |
parent | 94ed449247e2256d4163fb4a46b4be2c3f498d60 (diff) |
Return std::unique_ptr from SvTreeListBox::CreateContextMenu
Change-Id: I1e4c32099ec9741c0cab246eb627a2eb3b933e1a
Diffstat (limited to 'sw/source/uibase/inc/conttree.hxx')
-rw-r--r-- | sw/source/uibase/inc/conttree.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/uibase/inc/conttree.hxx b/sw/source/uibase/inc/conttree.hxx index aa49b1695c69..4dd8bdca4737 100644 --- a/sw/source/uibase/inc/conttree.hxx +++ b/sw/source/uibase/inc/conttree.hxx @@ -25,6 +25,8 @@ #include "swcont.hxx" #include <map> +#include <memory> + #include <o3tl/enumarray.hxx> class SwWrtShell; @@ -142,7 +144,7 @@ protected: void GotoContent(SwContent* pCnt); static void SetInDrag(bool bSet) {bIsInDrag = bSet;} - virtual PopupMenu* CreateContextMenu() SAL_OVERRIDE; + virtual std::unique_ptr<PopupMenu> CreateContextMenu() SAL_OVERRIDE; virtual void ExcecuteContextMenuAction( sal_uInt16 nSelectedPopupEntry ) SAL_OVERRIDE; public: @@ -305,7 +307,7 @@ protected: static void SetShowShell(const SfxObjectShell*pSet) {pShowShell = pSet;} DECL_STATIC_LINK_TYPED(SwGlobalTree, ShowFrameHdl, void*, void); - virtual PopupMenu* CreateContextMenu() SAL_OVERRIDE; + virtual std::unique_ptr<PopupMenu> CreateContextMenu() SAL_OVERRIDE; virtual void ExcecuteContextMenuAction( sal_uInt16 nSelectedPopupEntry ) SAL_OVERRIDE; public: |