diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-02-27 10:09:37 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-04-09 22:23:55 +0100 |
commit | 7fd0cd651dbca1df4ea94b949e9e8e5b0fab1830 (patch) | |
tree | d4bf9453da515e98ccbb97ca349905052a0ad148 /include | |
parent | 5800a27b9c4bb6d3c766d4f2e3960b42cabdc6df (diff) |
dbaccess: nail the last double-dispose issue breaking the test.
Change-Id: I861c970db9c36c973bcb2fa94a3e8e12f8de4f13
Diffstat (limited to 'include')
-rw-r--r-- | include/dbaccess/dataview.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
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<IController> m_xController; // the controller in where we resides in VclPtr<FixedLine> 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. */ |