From ad8a2074c6143d3ce05c0a5d93a553c13b950520 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Fri, 20 Mar 2015 18:58:34 +0000 Subject: cure a lot of unfortunate ScopedVclPtrs. Change-Id: I2149511f958ba75e81dc41b10b01eb9d19610037 --- forms/source/solar/control/navtoolbar.cxx | 2 ++ forms/source/solar/inc/navtoolbar.hxx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'forms/source') diff --git a/forms/source/solar/control/navtoolbar.cxx b/forms/source/solar/control/navtoolbar.cxx index af7bf5dca883..07429f0640d3 100644 --- a/forms/source/solar/control/navtoolbar.cxx +++ b/forms/source/solar/control/navtoolbar.cxx @@ -152,6 +152,8 @@ namespace frm void NavigationToolBar::dispose() { + for (auto i = m_aChildWins.begin(); i != m_aChildWins.end(); ++i) + i->disposeAndClear(); m_aChildWins.clear(); m_pToolbar.clear(); vcl::Window::dispose(); diff --git a/forms/source/solar/inc/navtoolbar.hxx b/forms/source/solar/inc/navtoolbar.hxx index ec66f92f78a9..79d126655a03 100644 --- a/forms/source/solar/inc/navtoolbar.hxx +++ b/forms/source/solar/inc/navtoolbar.hxx @@ -61,7 +61,7 @@ namespace frm m_pDescriptionProvider; ImageSize m_eImageSize; VclPtr m_pToolbar; - ::std::vector< ScopedVclPtr > m_aChildWins; + ::std::vector< VclPtr > m_aChildWins; public: NavigationToolBar( -- cgit