diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-10-23 14:35:10 -0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-25 08:19:58 +0000 |
commit | 704f95e5255ff72bfb548d50d66d4da61dc483ef (patch) | |
tree | 3b0799aa8ce5185f4775966f733e1acb2df6285c /shell/source/win32/simplemail/smplmailsuppl.cxx | |
parent | a95ecd8b65ea2275a66f6694f0c09e3faaef4407 (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/win32/simplemail/smplmailsuppl.cxx')
-rw-r--r-- | shell/source/win32/simplemail/smplmailsuppl.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/shell/source/win32/simplemail/smplmailsuppl.cxx b/shell/source/win32/simplemail/smplmailsuppl.cxx index 610699459822..6f530db8d989 100644 --- a/shell/source/win32/simplemail/smplmailsuppl.cxx +++ b/shell/source/win32/simplemail/smplmailsuppl.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <cppuhelper/supportsservice.hxx> #include <osl/diagnose.h> #include "smplmailsuppl.hxx" #include "smplmailclient.hxx" @@ -79,13 +80,7 @@ OUString SAL_CALL CSmplMailSuppl::getImplementationName() sal_Bool SAL_CALL CSmplMailSuppl::supportsService(const OUString& ServiceName) throw(RuntimeException) { - Sequence <OUString> SupportedServicesNames = Component_getSupportedServiceNames(); - - for (sal_Int32 n = SupportedServicesNames.getLength(); n--;) - if ( SupportedServicesNames[n] == ServiceName ) - return sal_True; - - return sal_False; + return cppu::supportsService(this, ServiceName); } Sequence<OUString> SAL_CALL CSmplMailSuppl::getSupportedServiceNames() |