diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-12-19 13:35:28 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-12-19 13:35:39 +0100 |
commit | 71eb27376a92f61c91567f2bfc2a74dba7192aab (patch) | |
tree | 5016e1ffb68d32f377226d8b2508076e946a09b6 /sax | |
parent | n#828390: Unit test for bullet's relative size. (diff) | |
download | core-71eb27376a92f61c91567f2bfc2a74dba7192aab.tar.gz core-71eb27376a92f61c91567f2bfc2a74dba7192aab.zip |
css.xml.sax service ctor clean-up
Change-Id: I556904861e93a145cfe65f61218926851e4e8eb0
Diffstat (limited to 'sax')
-rw-r--r-- | sax/qa/cppunit/parser.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sax/qa/cppunit/parser.cxx b/sax/qa/cppunit/parser.cxx index 52f66774c14a..5ee1613f2674 100644 --- a/sax/qa/cppunit/parser.cxx +++ b/sax/qa/cppunit/parser.cxx @@ -10,6 +10,7 @@ #include <sal/config.h> #include <com/sun/star/io/Pipe.hpp> +#include <com/sun/star/xml/sax/FastParser.hpp> #include <com/sun/star/xml/sax/FastTokenHandler.hpp> #include <com/sun/star/xml/sax/SAXParseException.hpp> #include <com/sun/star/xml/sax/XFastParser.hpp> @@ -44,11 +45,7 @@ private: void ParserTest::setUp() { test::BootstrapFixture::setUp(); - 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 = css::xml::sax::FastParser::create(m_xContext); mxParser->setTokenHandler( css::xml::sax::FastTokenHandler::create(m_xContext)); } |