summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-08-23 17:23:26 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-08-27 15:40:08 +0200
commit206c70eef30f7b6f538b88f7fb9505f397bef073 (patch)
treed311561f2eb90b57aeed5c1642882a90ddbd4c6a /filter
parent7634d064adc2c773288cec751674ff691de20b2b (diff)
fdo#46808, Adapt TempFile UNO service to new style
Change-Id: Ia448d6d74201e2be487c6d8317f94be3745808aa
Diffstat (limited to 'filter')
-rw-r--r--filter/source/xsltfilter/OleHandler.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/filter/source/xsltfilter/OleHandler.cxx b/filter/source/xsltfilter/OleHandler.cxx
index e2226c099ad0..715058ca507e 100644
--- a/filter/source/xsltfilter/OleHandler.cxx
+++ b/filter/source/xsltfilter/OleHandler.cxx
@@ -48,11 +48,13 @@
#include <package/Inflater.hxx>
#include <package/Deflater.hxx>
+#include <comphelper/componentcontext.hxx>
#include <cppuhelper/factory.hxx>
#include <cppuhelper/servicefactory.hxx>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/XInterface.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
+#include <com/sun/star/io/TempFile.hpp>
#include <com/sun/star/io/XInputStream.hpp>
#include <com/sun/star/io/XOutputStream.hpp>
#include <com/sun/star/io/XSeekable.hpp>
@@ -70,11 +72,8 @@ using namespace ::rtl;
namespace XSLT
{
Reference<XStream> SAL_CALL OleHandler::createTempFile() {
- Reference<XStream>
- tempFile(
- m_msf->createInstance(
- OUString(
- RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.io.TempFile" ))),
+ Reference<XStream> tempFile(
+ TempFile::create(comphelper::ComponentContext(m_msf).getUNOContext()),
UNO_QUERY);
OSL_ASSERT(tempFile.is());
return tempFile;