summaryrefslogtreecommitdiff
path: root/avmedia/source/vlc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-18 09:28:50 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-19 11:32:50 +0100
commit48251502a8143570810a05bd46e22efa34ed5600 (patch)
tree289b9467cb0fcd6241528834fb57f0ec2a23fab3 /avmedia/source/vlc
parent79827580ce7f6be4ff9017b516dc45c9eba5e01e (diff)
loplugin:unusedfields
Change-Id: I84a7bcb891548416f0e1f1b20059f9b20c890d4c Reviewed-on: https://gerrit.libreoffice.org/46686 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'avmedia/source/vlc')
-rw-r--r--avmedia/source/vlc/vlcmanager.cxx3
-rw-r--r--avmedia/source/vlc/vlcmanager.hxx3
-rw-r--r--avmedia/source/vlc/vlcuno.cxx4
3 files changed, 4 insertions, 6 deletions
diff --git a/avmedia/source/vlc/vlcmanager.cxx b/avmedia/source/vlc/vlcmanager.cxx
index d2c14f795910..a37622304b4f 100644
--- a/avmedia/source/vlc/vlcmanager.cxx
+++ b/avmedia/source/vlc/vlcmanager.cxx
@@ -37,9 +37,8 @@ namespace
};
}
-Manager::Manager( const uno::Reference< lang::XMultiServiceFactory >& rxMgr )
+Manager::Manager()
: mEventHandler()
- , mxMgr( rxMgr )
{
using namespace wrapper;
static bool success = Instance::LoadSymbols() && EventManager::LoadSymbols()
diff --git a/avmedia/source/vlc/vlcmanager.hxx b/avmedia/source/vlc/vlcmanager.hxx
index d060aaaeeaf9..5b83cea984e0 100644
--- a/avmedia/source/vlc/vlcmanager.hxx
+++ b/avmedia/source/vlc/vlcmanager.hxx
@@ -34,7 +34,7 @@ class Manager : public ::cppu::WeakImplHelper< css::media::XManager,
std::unique_ptr<wrapper::Instance> mInstance;
wrapper::EventHandler mEventHandler;
public:
- explicit Manager( const css::uno::Reference< css::lang::XMultiServiceFactory >& rxMgr );
+ explicit Manager();
virtual ~Manager() override;
css::uno::Reference< css::media::XPlayer > SAL_CALL createPlayer( const rtl::OUString& aURL ) override;
@@ -44,7 +44,6 @@ public:
css::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames() override;
private:
- css::uno::Reference< css::lang::XMultiServiceFactory > mxMgr;
css::uno::Reference< css::media::XPlayer > mPlayer;
rtl::OUString mURL;
bool m_is_vlc_found;
diff --git a/avmedia/source/vlc/vlcuno.cxx b/avmedia/source/vlc/vlcuno.cxx
index 99ffd3522026..5c2ba39d345d 100644
--- a/avmedia/source/vlc/vlcuno.cxx
+++ b/avmedia/source/vlc/vlcuno.cxx
@@ -29,7 +29,7 @@ using namespace ::com::sun::star;
#define IMPL_NAME "com.sun.star.comp.media.Manager_VLC"
#define SERVICE_NAME "com.sun.star.comp.avmedia.Manager_VLC"
-static uno::Reference< uno::XInterface > create_MediaPlayer( const uno::Reference< lang::XMultiServiceFactory >& rxFact )
+static uno::Reference< uno::XInterface > create_MediaPlayer( const uno::Reference< lang::XMultiServiceFactory >& /*rxFact*/ )
{
SAL_INFO("avmedia", "create VLC Media player !");
@@ -38,7 +38,7 @@ static uno::Reference< uno::XInterface > create_MediaPlayer( const uno::Referenc
if (!xContext.is() || !officecfg::Office::Common::Misc::ExperimentalMode::get(xContext))
return nullptr;
- static uno::Reference< uno::XInterface > manager( *new ::avmedia::vlc::Manager( rxFact ) );
+ static uno::Reference< uno::XInterface > manager( *new ::avmedia::vlc::Manager );
return manager;
}