From 7e708545e4e32910d93cd471eb8438dca4ab47b6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 8 Nov 2012 08:50:18 +0200 Subject: fdo#46808, remove some more XMultiServiceFactory fields Change-Id: Ida82837f6eaca1a59e85f5e9798084096d07b1a3 --- ucbhelper/inc/ucbhelper/contentinfo.hxx | 9 --------- ucbhelper/source/provider/contenthelper.cxx | 4 ++-- ucbhelper/source/provider/contentinfo.cxx | 8 ++------ 3 files changed, 4 insertions(+), 17 deletions(-) diff --git a/ucbhelper/inc/ucbhelper/contentinfo.hxx b/ucbhelper/inc/ucbhelper/contentinfo.hxx index db68370f3591..77dcd5850e58 100644 --- a/ucbhelper/inc/ucbhelper/contentinfo.hxx +++ b/ucbhelper/inc/ucbhelper/contentinfo.hxx @@ -22,7 +22,6 @@ #include #include -#include #include #include #include @@ -51,8 +50,6 @@ class PropertySetInfo : public com::sun::star::lang::XTypeProvider, public com::sun::star::beans::XPropertySetInfo { - com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > - m_xSMgr; com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment > m_xEnv; com::sun::star::uno::Sequence< com::sun::star::beans::Property >* @@ -66,8 +63,6 @@ private: public: PropertySetInfo( const com::sun::star::uno::Reference< - com::sun::star::lang::XMultiServiceFactory >& rxSMgr, - const com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment >& rxEnv, ContentImplHelper* pContent ); virtual ~PropertySetInfo(); @@ -111,8 +106,6 @@ class CommandProcessorInfo : public com::sun::star::lang::XTypeProvider, public com::sun::star::ucb::XCommandInfo { - com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > - m_xSMgr; com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment > m_xEnv; com::sun::star::uno::Sequence< com::sun::star::ucb::CommandInfo >* @@ -128,8 +121,6 @@ private: public: CommandProcessorInfo( const com::sun::star::uno::Reference< - com::sun::star::lang::XMultiServiceFactory >& rxSMgr, - const com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment >& rxEnv, ContentImplHelper* pContent ); virtual ~CommandProcessorInfo(); diff --git a/ucbhelper/source/provider/contenthelper.cxx b/ucbhelper/source/provider/contenthelper.cxx index e09a5ab84559..92deb602ad0d 100644 --- a/ucbhelper/source/provider/contenthelper.cxx +++ b/ucbhelper/source/provider/contenthelper.cxx @@ -1063,7 +1063,7 @@ ContentImplHelper::getCommandInfo( if ( !m_pImpl->m_xCommandsInfo.is() ) m_pImpl->m_xCommandsInfo - = new CommandProcessorInfo( m_xSMgr, xEnv, this ); + = new CommandProcessorInfo( xEnv, this ); else if ( !bCache ) m_pImpl->m_xCommandsInfo->reset(); @@ -1081,7 +1081,7 @@ ContentImplHelper::getPropertySetInfo( if ( !m_pImpl->m_xPropSetInfo.is() ) m_pImpl->m_xPropSetInfo - = new PropertySetInfo( m_xSMgr, xEnv, this ); + = new PropertySetInfo( xEnv, this ); else if ( !bCache ) m_pImpl->m_xPropSetInfo->reset(); diff --git a/ucbhelper/source/provider/contentinfo.cxx b/ucbhelper/source/provider/contentinfo.cxx index 93aa47206aaa..54c62347e493 100644 --- a/ucbhelper/source/provider/contentinfo.cxx +++ b/ucbhelper/source/provider/contentinfo.cxx @@ -43,11 +43,9 @@ using namespace com::sun::star; namespace ucbhelper { PropertySetInfo::PropertySetInfo( - const uno::Reference< lang::XMultiServiceFactory >& rxSMgr, const uno::Reference< com::sun::star::ucb::XCommandEnvironment >& rxEnv, ContentImplHelper* pContent ) -: m_xSMgr( rxSMgr ), - m_xEnv( rxEnv ), +: m_xEnv( rxEnv ), m_pProps( 0 ), m_pContent( pContent ) { @@ -218,11 +216,9 @@ sal_Bool PropertySetInfo::queryProperty( //========================================================================= CommandProcessorInfo::CommandProcessorInfo( - const uno::Reference< lang::XMultiServiceFactory >& rxSMgr, const uno::Reference< com::sun::star::ucb::XCommandEnvironment >& rxEnv, ContentImplHelper* pContent ) -: m_xSMgr( rxSMgr ), - m_xEnv( rxEnv ), +: m_xEnv( rxEnv ), m_pCommands( 0 ), m_pContent( pContent ) { -- cgit v1.2.3