summaryrefslogtreecommitdiff
path: root/svtools/source/uno/genericunodialog.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/uno/genericunodialog.cxx')
-rw-r--r--svtools/source/uno/genericunodialog.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/svtools/source/uno/genericunodialog.cxx b/svtools/source/uno/genericunodialog.cxx
index 22d4d52123f5..2e821bf42937 100644
--- a/svtools/source/uno/genericunodialog.cxx
+++ b/svtools/source/uno/genericunodialog.cxx
@@ -25,6 +25,7 @@
#include <toolkit/awt/vclxwindow.hxx>
#include <comphelper/extract.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include <cppuhelper/typeprovider.hxx>
#include <comphelper/property.hxx>
#include <osl/diagnose.h>
@@ -97,15 +98,9 @@ Sequence<Type> SAL_CALL OGenericUnoDialog::getTypes( ) throw(RuntimeException)
);
}
-//-------------------------------------------------------------------------
sal_Bool SAL_CALL OGenericUnoDialog::supportsService(const OUString& ServiceName) throw(RuntimeException)
{
- Sequence< OUString > aSupported(getSupportedServiceNames());
- const OUString* pArray = aSupported.getConstArray();
- for (sal_Int32 i = 0; i < aSupported.getLength(); ++i, ++pArray)
- if (pArray->equals(ServiceName))
- return sal_True;
- return sal_False;
+ return cppu::supportsService(this, ServiceName);
}
//-------------------------------------------------------------------------