diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-07-01 17:46:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-07-02 16:37:08 +0000 |
commit | 50b93a183bcdd9981a740a92cd5cc6be77be1973 (patch) | |
tree | 143e6b2662cced0c9b212166fa982fc0ce4521f2 | |
parent | 88b06253359dfa91242757ceb39d7276786a0587 (diff) |
tdf#92262 - fixup shared_ptr -> VclPtr issue.
Change-Id: Ia0b22e62001cff4a63ea197b77aebb1759f73122
Reviewed-on: https://gerrit.libreoffice.org/16664
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/16684
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sc/source/ui/cctrl/checklistmenu.cxx | 3 | ||||
-rw-r--r-- | sc/source/ui/inc/checklistmenu.hxx | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx index bbbed3332cb8..b4dc71b3ac1f 100644 --- a/sc/source/ui/cctrl/checklistmenu.cxx +++ b/sc/source/ui/cctrl/checklistmenu.cxx @@ -100,6 +100,8 @@ ScMenuFloatingWindow::~ScMenuFloatingWindow() void ScMenuFloatingWindow::dispose() { EndPopupMode(); + for (auto i = maMenuItems.begin(); i != maMenuItems.end(); ++i) + i->mpSubMenuWin.disposeAndClear(); mpParentMenu.clear(); PopupMenuFloatingWindow::dispose(); } @@ -919,6 +921,7 @@ void ScCheckListMenuWindow::dispose() maBtnUnselectSingle.disposeAndClear(); maBtnOk.disposeAndClear(); maBtnCancel.disposeAndClear(); + maTabStopCtrls.clear(); ScMenuFloatingWindow::dispose(); } diff --git a/sc/source/ui/inc/checklistmenu.hxx b/sc/source/ui/inc/checklistmenu.hxx index 26732c90c3d9..f4e714a5f220 100644 --- a/sc/source/ui/inc/checklistmenu.hxx +++ b/sc/source/ui/inc/checklistmenu.hxx @@ -147,8 +147,8 @@ private: struct MenuItemData { OUString maText; - bool mbEnabled:1; - bool mbSeparator:1; + bool mbEnabled:1; + bool mbSeparator:1; ::boost::shared_ptr<Action> mpAction; VclPtr<ScMenuFloatingWindow> mpSubMenuWin; |