diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-16 13:56:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-17 06:37:47 +0000 |
commit | 5f38916888f980898707553e58a3e0d836c5198c (patch) | |
tree | 8c0116098edfa3b0f195e043ef729dc2826ec505 /UnoControls/inc | |
parent | b2a4c1e085a14f79cb1765fe2ade443afc273b9a (diff) |
use rtl::Reference in BaseControl
no need to hold both raw pointer and a uno::Reference to the same object
Change-Id: I6aa2b2e259aed77ab038fc72a3ece7165e477f50
Reviewed-on: https://gerrit.libreoffice.org/33163
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'UnoControls/inc')
-rw-r--r-- | UnoControls/inc/basecontrol.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/UnoControls/inc/basecontrol.hxx b/UnoControls/inc/basecontrol.hxx index fbf1686d2a51..8e8b93784b7f 100644 --- a/UnoControls/inc/basecontrol.hxx +++ b/UnoControls/inc/basecontrol.hxx @@ -86,6 +86,7 @@ #include <tools/colordata.hxx> #include <cppuhelper/weak.hxx> #include <cppuhelper/component.hxx> +#include <rtl/ref.hxx> #include "multiplexer.hxx" @@ -383,8 +384,7 @@ private: css::uno::Reference< css::uno::XComponentContext > m_xComponentContext; css::uno::Reference< css::uno::XInterface > m_xDelegator; - OMRCListenerMultiplexerHelper* m_pMultiplexer; // multiplex events - css::uno::Reference< css::uno::XInterface > m_xMultiplexer; + rtl::Reference<OMRCListenerMultiplexerHelper> m_xMultiplexer; // multiplex events css::uno::Reference< css::uno::XInterface > m_xContext; css::uno::Reference< css::awt::XWindowPeer > m_xPeer; css::uno::Reference< css::awt::XWindow > m_xPeerWindow; |