summaryrefslogtreecommitdiff
path: root/sax/qa
diff options
context:
space:
mode:
Diffstat (limited to 'sax/qa')
-rw-r--r--sax/qa/cppunit/parser.cxx7
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));
}