diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-22 20:27:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-23 11:55:27 +0100 |
commit | 25a6599a885facfbcb084042f4ac2a9b46794aca (patch) | |
tree | 65e4bc02fe731cd495a1c5794403ceb47a8de27f /desktop/source/offacc | |
parent | 3010e0a6b7f4f41f8bda43d0e9931ef731090f48 (diff) |
loplugin:unusedfields in desktop
Change-Id: I72df89e96ea31c684a5255e19796191481bc8be5
Reviewed-on: https://gerrit.libreoffice.org/68231
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop/source/offacc')
-rw-r--r-- | desktop/source/offacc/acceptor.cxx | 6 | ||||
-rw-r--r-- | desktop/source/offacc/acceptor.hxx | 4 |
2 files changed, 3 insertions, 7 deletions
diff --git a/desktop/source/offacc/acceptor.cxx b/desktop/source/offacc/acceptor.cxx index 13d92c6bd216..d806ea7471e6 100644 --- a/desktop/source/offacc/acceptor.cxx +++ b/desktop/source/offacc/acceptor.cxx @@ -113,8 +113,7 @@ void Acceptor::run() SAL_INFO( "desktop.offacc", "Acceptor::run connection " << aDescription ); // create instanceprovider for this connection - Reference< XInstanceProvider > rInstanceProvider( - new AccInstanceProvider(m_rContext, rConnection)); + Reference< XInstanceProvider > rInstanceProvider(new AccInstanceProvider(m_rContext)); // create the bridge. The remote end will have a reference to this bridge // thus preventing the bridge from being disposed. When the remote end releases // the bridge, it will be destructed. @@ -217,10 +216,9 @@ Reference< XInterface > Acceptor::impl_getInstance( const Reference< XMultiServi } // InstanceProvider -AccInstanceProvider::AccInstanceProvider(const Reference<XComponentContext>& rxContext, const Reference<XConnection>& rConnection) +AccInstanceProvider::AccInstanceProvider(const Reference<XComponentContext>& rxContext) { m_rContext = rxContext; - m_rConnection = rConnection; } AccInstanceProvider::~AccInstanceProvider() diff --git a/desktop/source/offacc/acceptor.hxx b/desktop/source/offacc/acceptor.hxx index bbafc03030f1..67dd66928669 100644 --- a/desktop/source/offacc/acceptor.hxx +++ b/desktop/source/offacc/acceptor.hxx @@ -92,11 +92,9 @@ class AccInstanceProvider : public ::cppu::WeakImplHelper<css::bridge::XInstance { private: css::uno::Reference<css::uno::XComponentContext> m_rContext; - css::uno::Reference<css::connection::XConnection> m_rConnection; public: - AccInstanceProvider(const css::uno::Reference< css::uno::XComponentContext >& rxContext, - const css::uno::Reference< css::connection::XConnection >& rConnection); + AccInstanceProvider(const css::uno::Reference< css::uno::XComponentContext >& rxContext); virtual ~AccInstanceProvider() override; // XInstanceProvider |