summaryrefslogtreecommitdiff
path: root/include/svx
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2015-11-22 23:03:35 +0200
committerMaxim Monastirsky <momonasmon@gmail.com>2015-11-23 00:04:06 +0200
commit1335f3bd80682987b5c1c7d9cb548e85b31e03b4 (patch)
treed5ccdeea6fc8780450111bbd4b590f9c801d61f4 /include/svx
parentfae2fa55709f359847dc0e1099d6578c840f2748 (diff)
SvxSmartTagsControl: Do not leak sub menus
And while on it, move other things to smart pointers as well. Change-Id: I8b234b8a9fe60e0ca82bb08e48f6b7db94cbcd4d
Diffstat (limited to 'include/svx')
-rw-r--r--include/svx/SmartTagCtl.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/svx/SmartTagCtl.hxx b/include/svx/SmartTagCtl.hxx
index e4acd3eda637..81aa45f3eb76 100644
--- a/include/svx/SmartTagCtl.hxx
+++ b/include/svx/SmartTagCtl.hxx
@@ -44,9 +44,10 @@ namespace com { namespace sun { namespace star { namespace container {
class SVX_DLLPUBLIC SvxSmartTagsControl : public SfxMenuControl
{
private:
- PopupMenu* mpMenu;
+ std::unique_ptr< PopupMenu > mpMenu;
+ std::vector< std::unique_ptr< PopupMenu > > maSubMenus;
Menu& mrParent;
- const SvxSmartTagItem* mpSmartTagItem;
+ std::unique_ptr< const SvxSmartTagItem > mpSmartTagItem;
struct InvokeAction
{