summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-09-29 17:20:22 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-09-29 18:18:28 +0200
commitc2ca6fabd1afc3fc07001721c2069d3c8db7000a (patch)
tree350741d6d19564bcaf00506bd7d22b4c644e0fdc /filter
parentf05d7abf93bbcf443cb0b5759ca19992e2fa85a3 (diff)
Use comphelper::getComponentContext
...and some further clean up. Change-Id: Id294c0f38fe0041646fc86cacbd2e19734c746a9
Diffstat (limited to 'filter')
-rw-r--r--filter/source/xsltfilter/XSLTFilter.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/filter/source/xsltfilter/XSLTFilter.cxx b/filter/source/xsltfilter/XSLTFilter.cxx
index a5b28d571c9b..ba8503f7238a 100644
--- a/filter/source/xsltfilter/XSLTFilter.cxx
+++ b/filter/source/xsltfilter/XSLTFilter.cxx
@@ -58,7 +58,6 @@
#include <com/sun/star/xml/sax/SAXException.hpp>
#include <com/sun/star/xml/XImportFilter.hpp>
#include <com/sun/star/xml/XExportFilter.hpp>
-#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/util/XMacroExpander.hpp>
@@ -190,12 +189,8 @@ m_rServiceFactory(r), m_bTerminated(sal_False), m_bError(sal_False)
::rtl::OUString sExpandedUrl;
try
{
- css::uno::Reference<XComponentContext> xContext;
- css::uno::Reference<XPropertySet> xProps(m_rServiceFactory,
- UNO_QUERY_THROW);
- xContext.set(xProps->getPropertyValue(::rtl::OUString(
- "DefaultContext" )),
- UNO_QUERY_THROW);
+ css::uno::Reference<XComponentContext> xContext(
+ comphelper::getComponentContext(m_rServiceFactory));
css::uno::Reference<XMacroExpander>
xMacroExpander(
xContext->getValueByName(