diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-10-16 19:25:05 -0300 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-17 14:43:28 +0200 |
commit | 3d3293144b0e0d2d28136b1b2c7154d6352463b8 (patch) | |
tree | 1ef57838dc7fa88515a69dce12612e6071bc08b9 /comphelper/source/officeinstdir | |
parent | 6fe26facd06d4d1e5e37384d25d83209209229fa (diff) |
fdo#54938: Adapt svtools and comphelper module ...
to use cppu::supportsService and other pieces.
Change-Id: I16893b3d31a8055acd214ff23d01e63d38fe0826
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'comphelper/source/officeinstdir')
-rw-r--r-- | comphelper/source/officeinstdir/officeinstallationdirectories.cxx | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/comphelper/source/officeinstdir/officeinstallationdirectories.cxx b/comphelper/source/officeinstdir/officeinstallationdirectories.cxx index 43f38bca37e2..e5962c7c3973 100644 --- a/comphelper/source/officeinstdir/officeinstallationdirectories.cxx +++ b/comphelper/source/officeinstdir/officeinstallationdirectories.cxx @@ -20,6 +20,7 @@ #include <config_folders.h> #include "comphelper_module.hxx" +#include <cppuhelper/supportsservice.hxx> /************************************************************************** TODO @@ -216,25 +217,14 @@ OfficeInstallationDirectories::getImplementationName() return getImplementationName_static(); } -//========================================================================= // virtual sal_Bool SAL_CALL OfficeInstallationDirectories::supportsService( const OUString& ServiceName ) throw ( uno::RuntimeException ) { - const uno::Sequence< OUString > & aNames - = getSupportedServiceNames(); - const OUString * p = aNames.getConstArray(); - for ( sal_Int32 nPos = 0; nPos < aNames.getLength(); nPos++ ) - { - if ( p[ nPos ].equals( ServiceName ) ) - return sal_True; - } - return sal_False; - + return cppu::supportsService(this, ServiceName); } -//========================================================================= // virtual uno::Sequence< OUString > SAL_CALL OfficeInstallationDirectories::getSupportedServiceNames() |