diff options
author | Noel Grandin <noel@peralex.com> | 2013-01-31 17:08:44 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-02-11 08:02:17 +0200 |
commit | 834dcf3acde06389d57bec64c2cd6cca8189c079 (patch) | |
tree | 6c58716fa151198b9c96e17b8f0dd18ab4df4aaa /package/source/manifest/ManifestWriter.cxx | |
parent | 5bef4dc30c3dc70bc4d4b2cfbd2d1f729d714dfe (diff) |
fdo#46808, Convert package module to XComponentContext
Change-Id: I1b322e57d27e16d177ffa87d3cd42a7d06f3dfab
Diffstat (limited to 'package/source/manifest/ManifestWriter.cxx')
-rw-r--r-- | package/source/manifest/ManifestWriter.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/package/source/manifest/ManifestWriter.cxx b/package/source/manifest/ManifestWriter.cxx index 72ea5aa91858..f6a0c0b65925 100644 --- a/package/source/manifest/ManifestWriter.cxx +++ b/package/source/manifest/ManifestWriter.cxx @@ -40,8 +40,8 @@ using namespace ::com::sun::star::packages; using namespace ::com::sun::star::xml::sax; using namespace ::com::sun::star::packages::manifest; -ManifestWriter::ManifestWriter( const Reference < XMultiServiceFactory > & xNewFactory ) -: xFactory ( xNewFactory ) +ManifestWriter::ManifestWriter( const Reference < XComponentContext > & xContext ) +: m_xContext ( xContext ) { } ManifestWriter::~ManifestWriter() @@ -52,7 +52,7 @@ ManifestWriter::~ManifestWriter() void SAL_CALL ManifestWriter::writeManifestSequence( const Reference< XOutputStream >& rStream, const Sequence< Sequence< PropertyValue > >& rSequence ) throw (RuntimeException) { - Reference < XWriter > xSource = Writer::create( comphelper::getComponentContext(xFactory) ); + Reference < XWriter > xSource = Writer::create( m_xContext ); xSource->setOutputStream ( rStream ); try { Reference < XDocumentHandler > xHandler ( xSource, UNO_QUERY ); @@ -67,7 +67,7 @@ void SAL_CALL ManifestWriter::writeManifestSequence( const Reference< XOutputStr // Component methods Reference < XInterface > SAL_CALL ManifestWriter_createInstance( Reference< XMultiServiceFactory > const & rServiceFactory ) { - return *new ManifestWriter( rServiceFactory ); + return *new ManifestWriter( comphelper::getComponentContext(rServiceFactory) ); } OUString ManifestWriter::static_getImplementationName() |