summaryrefslogtreecommitdiff
path: root/shell/source/unix
diff options
context:
space:
mode:
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>2013-10-23 14:35:10 -0200
committerStephan Bergmann <sbergman@redhat.com>2013-10-25 08:19:58 +0000
commit704f95e5255ff72bfb548d50d66d4da61dc483ef (patch)
tree3b0799aa8ce5185f4775966f733e1acb2df6285c /shell/source/unix
parenta95ecd8b65ea2275a66f6694f0c09e3faaef4407 (diff)
fdo#54938: More uses of cppu::supportsService
Change-Id: I90a7a07a43559b8d7e1d4b886b2624255200d46b Reviewed-on: https://gerrit.libreoffice.org/6406 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'shell/source/unix')
-rw-r--r--shell/source/unix/exec/shellexec.cxx19
1 files changed, 2 insertions, 17 deletions
diff --git a/shell/source/unix/exec/shellexec.cxx b/shell/source/unix/exec/shellexec.cxx
index 3f97806d33c5..b3138677e09e 100644
--- a/shell/source/unix/exec/shellexec.cxx
+++ b/shell/source/unix/exec/shellexec.cxx
@@ -33,6 +33,7 @@
#include <com/sun/star/uri/XExternalUriReferenceTranslator.hpp>
#include <com/sun/star/uri/ExternalUriReferenceTranslator.hpp>
#include <com/sun/star/uri/UriReferenceFactory.hpp>
+#include <cppuhelper/supportsservice.hxx>
#include "uno/current_context.hxx"
@@ -265,37 +266,21 @@ void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aPar
}
}
-
-// -------------------------------------------------
// XServiceInfo
-// -------------------------------------------------
-
OUString SAL_CALL ShellExec::getImplementationName( )
throw( RuntimeException )
{
return OUString(SHELLEXEC_IMPL_NAME );
}
-// -------------------------------------------------
// XServiceInfo
-// -------------------------------------------------
-
sal_Bool SAL_CALL ShellExec::supportsService( const OUString& ServiceName )
throw( RuntimeException )
{
- Sequence < OUString > SupportedServicesNames = ShellExec_getSupportedServiceNames();
-
- for ( sal_Int32 n = SupportedServicesNames.getLength(); n--; )
- if ( SupportedServicesNames[n] == ServiceName )
- return sal_True;
-
- return sal_False;
+ return cppu::supportsService(this, ServiceName);
}
-// -------------------------------------------------
// XServiceInfo
-// -------------------------------------------------
-
Sequence< OUString > SAL_CALL ShellExec::getSupportedServiceNames( )
throw( RuntimeException )
{