summaryrefslogtreecommitdiffstats
path: root/dtrans/source/generic/clipboardmanager.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dtrans/source/generic/clipboardmanager.cxx')
-rw-r--r--dtrans/source/generic/clipboardmanager.cxx11
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);
}
// ------------------------------------------------------------------------