summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--offapi/com/sun/star/xml/sax/FastTokenHandler.idl4
-rw-r--r--sax/qa/cppunit/parser.cxx9
-rw-r--r--sax/source/tools/fshelper.cxx5
3 files changed, 6 insertions, 12 deletions
diff --git a/offapi/com/sun/star/xml/sax/FastTokenHandler.idl b/offapi/com/sun/star/xml/sax/FastTokenHandler.idl
index 72d9bf30d26c..eccca85dec4d 100644
--- a/offapi/com/sun/star/xml/sax/FastTokenHandler.idl
+++ b/offapi/com/sun/star/xml/sax/FastTokenHandler.idl
@@ -24,9 +24,7 @@
module com { module sun { module star { module xml { module sax {
-service FastTokenHandler : XFastTokenHandler
-{
-};
+service FastTokenHandler : XFastTokenHandler;
}; }; }; }; };
diff --git a/sax/qa/cppunit/parser.cxx b/sax/qa/cppunit/parser.cxx
index ac4ac5311658..52da2a6d7812 100644
--- a/sax/qa/cppunit/parser.cxx
+++ b/sax/qa/cppunit/parser.cxx
@@ -10,9 +10,9 @@
#include <sal/config.h>
#include <com/sun/star/io/Pipe.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>
-#include <com/sun/star/xml/sax/XFastTokenHandler.hpp>
#include <test/bootstrapfixture.hxx>
#include <comphelper/componentcontext.hxx>
@@ -26,7 +26,6 @@ class ParserTest: public test::BootstrapFixture
{
InputSource maInput;
uno::Reference< XFastParser > mxParser;
- uno::Reference< XFastTokenHandler > mxTokenHandler;
uno::Reference< XFastDocumentHandler > mxDocumentHandler;
public:
@@ -49,10 +48,8 @@ void ParserTest::setUp()
mxParser.set( comphelper::ComponentContext(m_xContext).createComponent(
"com.sun.star.xml.sax.FastParser"), uno::UNO_QUERY );
CPPUNIT_ASSERT_MESSAGE("No FastParser!", mxParser.is());
- mxTokenHandler.set( comphelper::ComponentContext(m_xContext).createComponent(
- "com.sun.star.xml.sax.FastTokenHandler"), uno::UNO_QUERY );
- CPPUNIT_ASSERT_MESSAGE("No TokenHandler!", mxTokenHandler.is());
- mxParser->setTokenHandler( mxTokenHandler );
+ mxParser->setTokenHandler(
+ css::xml::sax::FastTokenHandler::create(m_xContext));
}
void ParserTest::tearDown()
diff --git a/sax/source/tools/fshelper.cxx b/sax/source/tools/fshelper.cxx
index f4b8ddd50610..c39cbeaaff1a 100644
--- a/sax/source/tools/fshelper.cxx
+++ b/sax/source/tools/fshelper.cxx
@@ -19,7 +19,7 @@
#include <sax/fshelper.hxx>
#include "fastserializer.hxx"
-#include <com/sun/star/xml/sax/XFastTokenHandler.hpp>
+#include <com/sun/star/xml/sax/FastTokenHandler.hpp>
#include <comphelper/processfactory.hxx>
#include <rtl/ustrbuf.hxx>
@@ -32,8 +32,7 @@ FastSerializerHelper::FastSerializerHelper(const Reference< io::XOutputStream >&
mpSerializer(new FastSaxSerializer())
{
Reference< XComponentContext > xContext( ::comphelper::getProcessComponentContext(), UNO_SET_THROW );
- Reference< lang::XMultiComponentFactory > xFactory( xContext->getServiceManager(), UNO_SET_THROW );
- mxTokenHandler.set( xFactory->createInstanceWithContext("com.sun.star.xml.sax.FastTokenHandler", xContext ), UNO_QUERY_THROW );
+ mxTokenHandler = css::xml::sax::FastTokenHandler::create(xContext);
mpSerializer->setFastTokenHandler( mxTokenHandler );
mpSerializer->setOutputStream( xOutputStream );