summaryrefslogtreecommitdiff
path: root/desktop/source/splash
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-12-22 16:02:46 +0200
committerNoel Grandin <noel@peralex.com>2015-12-23 08:13:54 +0200
commit004803c0d8ac227e80afe4fba9ab8d0ea085f05d (patch)
tree89b40fd647e7e2a059e5026a32180e0b0c0cc7be /desktop/source/splash
parentfb93ed9f6f84ed393e4619eb653a70e1799dc261 (diff)
loplugin:unusedfields in desktop
Change-Id: Ic816a7faf4d357d16c13f67533b3b409a531d14c
Diffstat (limited to 'desktop/source/splash')
-rw-r--r--desktop/source/splash/unxsplash.cxx9
-rw-r--r--desktop/source/splash/unxsplash.hxx3
2 files changed, 5 insertions, 7 deletions
diff --git a/desktop/source/splash/unxsplash.cxx b/desktop/source/splash/unxsplash.cxx
index dbf9e7523614..c396fc5f6b18 100644
--- a/desktop/source/splash/unxsplash.cxx
+++ b/desktop/source/splash/unxsplash.cxx
@@ -29,9 +29,8 @@ using namespace com::sun::star;
namespace desktop
{
- UnxSplashScreen::UnxSplashScreen( const uno::Reference< uno::XComponentContext >& xCtx )
- : m_xCtx( xCtx ),
- m_pOutFd( nullptr )
+ UnxSplashScreen::UnxSplashScreen()
+ : m_pOutFd( nullptr )
{
}
@@ -143,14 +142,14 @@ using namespace desktop;
// get service instance...
static uno::Reference< uno::XInterface > m_xINSTANCE;
-uno::Reference< uno::XInterface > UnxSplash_createInstance(const uno::Reference< uno::XComponentContext > & xCtx ) throw( uno::Exception )
+uno::Reference< uno::XInterface > UnxSplash_createInstance(const uno::Reference< uno::XComponentContext > & ) throw( uno::Exception )
{
static osl::Mutex m_aMutex;
if ( !m_xINSTANCE.is() )
{
osl::MutexGuard guard( m_aMutex );
if ( !m_xINSTANCE.is() )
- m_xINSTANCE = static_cast<cppu::OWeakObject*>(new UnxSplashScreen( xCtx ));
+ m_xINSTANCE = static_cast<cppu::OWeakObject*>(new UnxSplashScreen);
}
return m_xINSTANCE;
diff --git a/desktop/source/splash/unxsplash.hxx b/desktop/source/splash/unxsplash.hxx
index 38e804aaef48..4935777eaf2d 100644
--- a/desktop/source/splash/unxsplash.hxx
+++ b/desktop/source/splash/unxsplash.hxx
@@ -39,12 +39,11 @@ private:
static UnxSplashScreen *m_pINSTANCE;
static osl::Mutex m_aMutex;
- css::uno::Reference< css::uno::XComponentContext > m_xCtx;
FILE *m_pOutFd;
public:
- explicit UnxSplashScreen( const css::uno::Reference< css::uno::XComponentContext >& xCtx );
+ explicit UnxSplashScreen();
// XStatusIndicator
virtual void SAL_CALL start( const OUString& aText, sal_Int32 nRange ) throw ( css::uno::RuntimeException, std::exception ) override;