summaryrefslogtreecommitdiff
path: root/vcl/unx/generic/dtrans/X11_droptarget.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/unx/generic/dtrans/X11_droptarget.cxx')
-rw-r--r--vcl/unx/generic/dtrans/X11_droptarget.cxx24
1 files changed, 3 insertions, 21 deletions
diff --git a/vcl/unx/generic/dtrans/X11_droptarget.cxx b/vcl/unx/generic/dtrans/X11_droptarget.cxx
index b2e76aa63285..f8463ab7dedd 100644
--- a/vcl/unx/generic/dtrans/X11_droptarget.cxx
+++ b/vcl/unx/generic/dtrans/X11_droptarget.cxx
@@ -17,7 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
+#include <cppuhelper/supportsservice.hxx>
#include <X11_selection.hxx>
using namespace x11;
@@ -182,38 +182,20 @@ void DropTarget::dragOver( const DropTargetDragEvent& dtde ) throw()
}
}
-// --------------------------------------------------------------------------
-
-/*
- * XServiceInfo
- */
-
-// ------------------------------------------------------------------------
-
+// XServiceInfo
OUString DropTarget::getImplementationName() throw()
{
return OUString(XDND_DROPTARGET_IMPLEMENTATION_NAME);
}
-// ------------------------------------------------------------------------
-
sal_Bool DropTarget::supportsService( const OUString& ServiceName ) throw()
{
- Sequence < OUString > SupportedServicesNames = Xdnd_dropTarget_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 > DropTarget::getSupportedServiceNames() throw()
{
return Xdnd_dropTarget_getSupportedServiceNames();
}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */