summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx')
-rw-r--r--ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx12
1 files changed, 2 insertions, 10 deletions
diff --git a/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx b/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx
index cc64ec27a27e..8611380b006f 100644
--- a/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx
+++ b/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx
@@ -25,6 +25,7 @@
*************************************************************************/
#include "cppuhelper/factory.hxx"
+#include <cppuhelper/supportsservice.hxx>
#include "tdoc_documentcontentfactory.hxx"
@@ -64,23 +65,14 @@ OUString SAL_CALL DocumentContentFactory::getImplementationName()
return getImplementationName_Static();
}
-//=========================================================================
// virtual
sal_Bool SAL_CALL
DocumentContentFactory::supportsService( const OUString& ServiceName )
throw ( uno::RuntimeException )
{
- uno::Sequence< OUString > aSNL = getSupportedServiceNames();
- const OUString * pArray = aSNL.getConstArray();
- for ( sal_Int32 i = 0; i < aSNL.getLength(); i++ )
- {
- if ( pArray[ i ] == ServiceName )
- return sal_True;
- }
- return sal_False;
+ return cppu::supportsService(this, ServiceName);
}
-//=========================================================================
// virtual
uno::Sequence< OUString > SAL_CALL
DocumentContentFactory::getSupportedServiceNames()