summaryrefslogtreecommitdiff
path: root/embeddedobj
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-01-16 15:23:16 +0200
committerNoel Grandin <noel@peralex.com>2013-02-11 08:02:10 +0200
commita00fe5cd4aa115e131919c4dbfea87c94b51e044 (patch)
treef8d88a97adf9b569d1d01d82e639c72da9f78cf2 /embeddedobj
parent9a36294079a13d713490ed754be441d9dbc214ce (diff)
fdo#46808, use service constructor
Change-Id: I8c533eb6efdcabc3475527fb16f9674ca2a5eb8b
Diffstat (limited to 'embeddedobj')
-rw-r--r--embeddedobj/source/commonembedding/persistence.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/embeddedobj/source/commonembedding/persistence.cxx b/embeddedobj/source/commonembedding/persistence.cxx
index 96e5db0c8a8c..7899567285ec 100644
--- a/embeddedobj/source/commonembedding/persistence.cxx
+++ b/embeddedobj/source/commonembedding/persistence.cxx
@@ -781,9 +781,7 @@ void OCommonEmbeddedObject::StoreDocToStorage_Impl( const uno::Reference< embed:
OSL_ENSURE( xTempIn.is(), "The stream reference can not be empty!\n" );
// open storage based on document temporary file for reading
- uno::Reference < lang::XSingleServiceFactory > xStorageFactory(
- m_xContext->getServiceManager()->createInstanceWithContext("com.sun.star.embed.StorageFactory", m_xContext),
- uno::UNO_QUERY );
+ uno::Reference < lang::XSingleServiceFactory > xStorageFactory = embed::StorageFactory::create(m_xContext);
uno::Sequence< uno::Any > aArgs(1);
aArgs[0] <<= xTempIn;