From cbe5a8c85868be56ab1fac5534b105692789b9d8 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 13 Aug 2012 13:17:14 +0200 Subject: -Werror,-Wunused-private-field (Clang towards 3.2) Change-Id: I213bc96fd6c9049c0dba0a527e827ae5d8f0ace3 --- comphelper/source/eventattachermgr/eventattachermgr.cxx | 2 -- comphelper/source/misc/accessiblecontexthelper.cxx | 12 ++++-------- 2 files changed, 4 insertions(+), 10 deletions(-) (limited to 'comphelper/source') diff --git a/comphelper/source/eventattachermgr/eventattachermgr.cxx b/comphelper/source/eventattachermgr/eventattachermgr.cxx index 98637f205b1f..3ade1e7428e5 100644 --- a/comphelper/source/eventattachermgr/eventattachermgr.cxx +++ b/comphelper/source/eventattachermgr/eventattachermgr.cxx @@ -157,7 +157,6 @@ class AttacherAllListener_Impl : public WeakImplHelper1< XAllListener > Reference< XEventAttacherManager > xManager; OUString aScriptType; OUString aScriptCode; - sal_Int16 nVersion; void convertToEventReturn( Any & rRet, const Type & rRetType ) throw( CannotConvertException ); @@ -184,7 +183,6 @@ AttacherAllListener_Impl::AttacherAllListener_Impl , xManager( pManager_ ) , aScriptType( rScriptType_ ) , aScriptCode( rScriptCode_ ) - , nVersion( 2 ) { } diff --git a/comphelper/source/misc/accessiblecontexthelper.cxx b/comphelper/source/misc/accessiblecontexthelper.cxx index dbe5d1e6d1a7..48410203a21c 100644 --- a/comphelper/source/misc/accessiblecontexthelper.cxx +++ b/comphelper/source/misc/accessiblecontexthelper.cxx @@ -43,10 +43,8 @@ namespace comphelper class OContextHelper_Impl { private: - OAccessibleContextHelper* m_pAntiImpl; // the owning instance IMutex* m_pExternalLock; // the optional additional external lock - ::cppu::OInterfaceContainerHelper* m_pEventListeners; WeakReference< XAccessible > m_aCreator; // the XAccessible which created our XAccessibleContext AccessibleEventNotifier::TClientId m_nClientId; @@ -64,10 +62,8 @@ namespace comphelper { m_nClientId = _nId; } public: - OContextHelper_Impl( OAccessibleContextHelper* _pAntiImpl ) - :m_pAntiImpl( _pAntiImpl ) - ,m_pExternalLock( NULL ) - ,m_pEventListeners( NULL ) + OContextHelper_Impl() + :m_pExternalLock( NULL ) ,m_nClientId( 0 ) { } @@ -87,7 +83,7 @@ namespace comphelper :OAccessibleContextHelper_Base( GetMutex() ) ,m_pImpl( NULL ) { - m_pImpl = new OContextHelper_Impl( this ); + m_pImpl = new OContextHelper_Impl(); } //--------------------------------------------------------------------- @@ -95,7 +91,7 @@ namespace comphelper :OAccessibleContextHelper_Base( GetMutex() ) ,m_pImpl( NULL ) { - m_pImpl = new OContextHelper_Impl( this ); + m_pImpl = new OContextHelper_Impl(); m_pImpl->setExternalLock( _pExternalLock ); } -- cgit v1.2.3