From 7fd0cd651dbca1df4ea94b949e9e8e5b0fab1830 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Fri, 27 Feb 2015 10:09:37 +0000 Subject: dbaccess: nail the last double-dispose issue breaking the test. Change-Id: I861c970db9c36c973bcb2fa94a3e8e12f8de4f13 --- include/dbaccess/dataview.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/dbaccess/dataview.hxx b/include/dbaccess/dataview.hxx index d62509761c63..4dabda021210 100644 --- a/include/dbaccess/dataview.hxx +++ b/include/dbaccess/dataview.hxx @@ -37,7 +37,7 @@ namespace dbaui ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext; // the service factory to work with protected: - IController& m_rController; // the controller in where we resides in + rtl::Reference m_xController; // the controller in where we resides in VclPtr m_aSeparator; ::std::unique_ptr< ::svt::AcceleratorExecute> m_pAccel; @@ -58,7 +58,7 @@ namespace dbaui virtual void StateChanged( StateChangedType nStateChange ) SAL_OVERRIDE; virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE; - inline IController& getCommandController() const { return m_rController; } + inline IController& getCommandController() const { return *m_xController.get(); } /** will be called when the controls need to be resized. */ -- cgit