summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/scdetect.cxx
diff options
context:
space:
mode:
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>2013-12-05 19:19:16 -0200
committerStephan Bergmann <sbergman@redhat.com>2013-12-09 16:39:00 +0100
commit326aa3ff4d86c5709ae85ab71fd2c6828bbe7559 (patch)
treed5422ede96e614e074883b8f608fd2482f039edd /sc/source/ui/unoobj/scdetect.cxx
parentcf8a54e48c24b2b2b3ca31b0c2d2faef9f2fca0d (diff)
fdo#54938: Convert sc to use cppu::supportsService
Change-Id: I1f1606244fbb6e6ddd5b6427322564a0033de78b Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc/source/ui/unoobj/scdetect.cxx')
-rw-r--r--sc/source/ui/unoobj/scdetect.cxx12
1 files changed, 2 insertions, 10 deletions
diff --git a/sc/source/ui/unoobj/scdetect.cxx b/sc/source/ui/unoobj/scdetect.cxx
index f477cf91e008..217033122e46 100644
--- a/sc/source/ui/unoobj/scdetect.cxx
+++ b/sc/source/ui/unoobj/scdetect.cxx
@@ -30,6 +30,7 @@
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/string.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/io/XInputStream.hpp>
#include <com/sun/star/task/XInteractionHandler.hpp>
@@ -659,16 +660,7 @@ OUString SAL_CALL ScFilterDetect::getImplementationName() throw (uno::RuntimeExc
sal_Bool ScFilterDetect::supportsService( const OUString& sServiceName )
throw (uno::RuntimeException)
{
- uno::Sequence<OUString> seqServiceNames(getSupportedServiceNames());
- const OUString* pArray = seqServiceNames.getConstArray();
- for ( sal_Int32 nCounter=0; nCounter<seqServiceNames.getLength(); nCounter++ )
- {
- if ( pArray[nCounter] == sServiceName )
- {
- return sal_True ;
- }
- }
- return false ;
+ return cppu::supportsService(this, sServiceName);
}
com::sun::star::uno::Sequence<OUString> ScFilterDetect::getSupportedServiceNames()