diff options
Diffstat (limited to 'unoxml/source/dom/saxbuilder.cxx')
-rw-r--r-- | unoxml/source/dom/saxbuilder.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/unoxml/source/dom/saxbuilder.cxx b/unoxml/source/dom/saxbuilder.cxx index 75edd9a6c450..8e1c69c2d22e 100644 --- a/unoxml/source/dom/saxbuilder.cxx +++ b/unoxml/source/dom/saxbuilder.cxx @@ -24,7 +24,7 @@ #include <com/sun/star/xml/dom/DocumentBuilder.hpp> #include <comphelper/processfactory.hxx> - +#include <cppuhelper/supportsservice.hxx> namespace DOM { @@ -73,15 +73,9 @@ namespace DOM sal_Bool SAL_CALL CSAXDocumentBuilder::supportsService(const OUString& aServiceName) throw (RuntimeException) { - Sequence< OUString > supported = CSAXDocumentBuilder::_getSupportedServiceNames(); - for (sal_Int32 i=0; i<supported.getLength(); i++) - { - if (supported[i] == aServiceName) return sal_True; - } - return sal_False; + return cppu::supportsService(this, aServiceName); } - SAXDocumentBuilderState SAL_CALL CSAXDocumentBuilder::getState() throw (RuntimeException) { |