diff options
author | Noel Grandin <noel@peralex.com> | 2013-02-25 15:17:03 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-03-04 14:22:33 +0200 |
commit | 244c7cdede13980c29850b7b68e9da16cdc61879 (patch) | |
tree | d06ef7ef2a9239302aedf5ba126e3e3e2fc4c146 /framework/source/fwe/xml/menuconfiguration.cxx | |
parent | c4c736c2a4c9852f8ef8257c36d7b5481aa9e83a (diff) |
fdo#46808, convert task::StatusIndicatorFactory to new style
the service already existed, it just needed an IDL file.
Change-Id: I84c8e48e176ec3a38ac48a7abcec7463390523b9
Diffstat (limited to 'framework/source/fwe/xml/menuconfiguration.cxx')
-rw-r--r-- | framework/source/fwe/xml/menuconfiguration.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/source/fwe/xml/menuconfiguration.cxx b/framework/source/fwe/xml/menuconfiguration.cxx index 61fd1302a15f..0402a9546a90 100644 --- a/framework/source/fwe/xml/menuconfiguration.cxx +++ b/framework/source/fwe/xml/menuconfiguration.cxx @@ -44,8 +44,8 @@ namespace framework { MenuConfiguration::MenuConfiguration( - const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& rServiceManager ) -: m_rxServiceManager( rServiceManager ) + const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext ) +: m_xContext( rxContext ) { } @@ -59,7 +59,7 @@ Reference< XIndexAccess > MenuConfiguration::CreateMenuBarConfigurationFromXML( Reference< XInputStream >& rInputStream ) throw ( WrappedTargetException ) { - Reference< XParser > xParser = Parser::create( comphelper::getComponentContext(m_rxServiceManager) ); + Reference< XParser > xParser = Parser::create( m_xContext ); // connect stream to input stream to the parser InputSource aInputSource; @@ -121,7 +121,7 @@ void MenuConfiguration::StoreMenuBarConfigurationToXML( Reference< XOutputStream >& rOutputStream ) throw ( WrappedTargetException ) { - Reference< XWriter > xWriter = Writer::create(comphelper::getComponentContext(m_rxServiceManager)); + Reference< XWriter > xWriter = Writer::create(m_xContext); xWriter->setOutputStream( rOutputStream ); try |