diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-10-26 13:11:42 -0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-30 18:17:11 +0100 |
commit | 2b01553fa5982ed50fd37f346a150d1aac8dcd6f (patch) | |
tree | 1daf00bf4b69950c5b75e98571d2b839d5b83327 /svx/source/xml | |
parent | 9ab844c7fa907e2d1119a316c695198ef888a059 (diff) |
fdo#54938: Convert svx to use cppu::supportsService
Change-Id: I3ab178924cb1c4240511f08625f244dac54e3913
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svx/source/xml')
-rw-r--r-- | svx/source/xml/xmlgrhlp.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/xml/xmlgrhlp.cxx b/svx/source/xml/xmlgrhlp.cxx index 42c9c213f704..b26c811b7e15 100644 --- a/svx/source/xml/xmlgrhlp.cxx +++ b/svx/source/xml/xmlgrhlp.cxx @@ -27,6 +27,7 @@ #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/lang/XInitialization.hpp> #include <cppuhelper/compbase4.hxx> +#include <cppuhelper/supportsservice.hxx> #include <unotools/ucbstreamhelper.hxx> #include <unotools/streamwrap.hxx> @@ -1017,14 +1018,13 @@ OUString SAL_CALL SvXMLGraphicImportExportHelper::getImplementationName() return SvXMLGraphicImportHelper_getImplementationName(); return SvXMLGraphicExportHelper_getImplementationName(); } + ::sal_Bool SAL_CALL SvXMLGraphicImportExportHelper::supportsService( const OUString& ServiceName ) throw (uno::RuntimeException) { - Sequence< OUString > aServiceNames( getSupportedServiceNames()); - const OUString * pBegin = aServiceNames.getConstArray(); - const OUString * pEnd = pBegin + aServiceNames.getLength(); - return (::std::find( pBegin, pEnd, ServiceName ) != pEnd); + return cppu::supportsService(this, ServiceName); } + Sequence< OUString > SAL_CALL SvXMLGraphicImportExportHelper::getSupportedServiceNames() throw (uno::RuntimeException) { |