diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-10-21 22:56:59 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-21 23:30:59 +0200 |
commit | 6cc508aec4e30c72c00eac9e77fb6dd10cc093e9 (patch) | |
tree | 7e812b5dede4b386e0d60859130d415cac1d6494 /sax/qa | |
parent | b13c8de265a6454c4677f52fd9a3440ac3279c51 (diff) |
Remove comphelper::ComponentContext
Change-Id: Idc5974e5a2ec68e8f1b2312a88fab15092c82788
Diffstat (limited to 'sax/qa')
-rw-r--r-- | sax/qa/cppunit/parser.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sax/qa/cppunit/parser.cxx b/sax/qa/cppunit/parser.cxx index 52da2a6d7812..52f66774c14a 100644 --- a/sax/qa/cppunit/parser.cxx +++ b/sax/qa/cppunit/parser.cxx @@ -15,7 +15,6 @@ #include <com/sun/star/xml/sax/XFastParser.hpp> #include <test/bootstrapfixture.hxx> -#include <comphelper/componentcontext.hxx> using namespace css; using namespace css::xml::sax; @@ -45,8 +44,10 @@ private: void ParserTest::setUp() { test::BootstrapFixture::setUp(); - mxParser.set( comphelper::ComponentContext(m_xContext).createComponent( - "com.sun.star.xml.sax.FastParser"), uno::UNO_QUERY ); + mxParser.set( + m_xContext->getServiceManager()->createInstanceWithContext( + "com.sun.star.xml.sax.FastParser", m_xContext), + uno::UNO_QUERY ); CPPUNIT_ASSERT_MESSAGE("No FastParser!", mxParser.is()); mxParser->setTokenHandler( css::xml::sax::FastTokenHandler::create(m_xContext)); |