diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-09-25 15:41:29 -0300 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-07 17:01:33 +0000 |
commit | 7235d23267e4591e5cf47762abd3f63421b06904 (patch) | |
tree | 6353239b1c586642e22c5df892a7c0560e632fa5 /dtrans/source/generic/clipboardmanager.cxx | |
parent | html: <li> is on/off - arrange list correctly (diff) | |
download | core-7235d23267e4591e5cf47762abd3f63421b06904.tar.gz core-7235d23267e4591e5cf47762abd3f63421b06904.zip |
fdo#54938: Adapt supportsService implementations to cppu::supportsService
Change-Id: I683c0d30c3286ed5d725d4eefe8b3977b82ee316
Reviewed-on: https://gerrit.libreoffice.org/6035
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'dtrans/source/generic/clipboardmanager.cxx')
-rw-r--r-- | dtrans/source/generic/clipboardmanager.cxx | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/dtrans/source/generic/clipboardmanager.cxx b/dtrans/source/generic/clipboardmanager.cxx index d4f6f9dbdb7d..6d130615d61a 100644 --- a/dtrans/source/generic/clipboardmanager.cxx +++ b/dtrans/source/generic/clipboardmanager.cxx @@ -19,6 +19,7 @@ #include <clipboardmanager.hxx> #include <com/sun/star/lang/DisposedException.hpp> +#include <cppuhelper/supportsservice.hxx> using namespace com::sun::star::container; using namespace com::sun::star::datatransfer; @@ -53,18 +54,10 @@ OUString SAL_CALL ClipboardManager::getImplementationName( ) return OUString(CLIPBOARDMANAGER_IMPLEMENTATION_NAME); } -// ------------------------------------------------------------------------ - sal_Bool SAL_CALL ClipboardManager::supportsService( const OUString& ServiceName ) throw(RuntimeException) { - Sequence < OUString > SupportedServicesNames = ClipboardManager_getSupportedServiceNames(); - - for ( sal_Int32 n = 0, nmax = SupportedServicesNames.getLength(); n < nmax; n++ ) - if ( SupportedServicesNames[n] == ServiceName ) - return sal_True; - - return sal_False; + return cppu::supportsService(this, ServiceName); } // ------------------------------------------------------------------------ |