summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/SwXTextDefaults.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/unocore/SwXTextDefaults.cxx')
-rw-r--r--sw/source/core/unocore/SwXTextDefaults.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/sw/source/core/unocore/SwXTextDefaults.cxx b/sw/source/core/unocore/SwXTextDefaults.cxx
index 70712cc74072..1acbf412813f 100644
--- a/sw/source/core/unocore/SwXTextDefaults.cxx
+++ b/sw/source/core/unocore/SwXTextDefaults.cxx
@@ -27,6 +27,7 @@
#include <SwStyleNameMapper.hxx>
#include <fchrfmt.hxx>
#include <charfmt.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include <docstyle.hxx>
#include <doc.hxx>
#include <docsh.hxx>
@@ -238,22 +239,18 @@ Any SAL_CALL SwXTextDefaults::getPropertyDefault( const OUString& rPropertyName
return aRet;
}
-
OUString SAL_CALL SwXTextDefaults::getImplementationName( )
throw (RuntimeException)
{
return OUString("SwXTextDefaults");
}
-
sal_Bool SAL_CALL SwXTextDefaults::supportsService( const OUString& rServiceName )
throw (RuntimeException)
{
- uno::Sequence< OUString > aSeq(getSupportedServiceNames());
- return std::find(aSeq.begin(), aSeq.end(), rServiceName) != aSeq.end();
+ return cppu::supportsService(this, rServiceName);
}
-
uno::Sequence< OUString > SAL_CALL SwXTextDefaults::getSupportedServiceNames( )
throw (RuntimeException)
{
@@ -269,6 +266,4 @@ uno::Sequence< OUString > SAL_CALL SwXTextDefaults::getSupportedServiceNames( )
return aRet;
}
-
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */