summaryrefslogtreecommitdiff
path: root/fpicker/source/aqua/SalAquaFilePicker.mm
diff options
context:
space:
mode:
Diffstat (limited to 'fpicker/source/aqua/SalAquaFilePicker.mm')
-rw-r--r--fpicker/source/aqua/SalAquaFilePicker.mm18
1 files changed, 2 insertions, 16 deletions
diff --git a/fpicker/source/aqua/SalAquaFilePicker.mm b/fpicker/source/aqua/SalAquaFilePicker.mm
index fbae6e4d98f1..50d251ca704f 100644
--- a/fpicker/source/aqua/SalAquaFilePicker.mm
+++ b/fpicker/source/aqua/SalAquaFilePicker.mm
@@ -27,6 +27,7 @@
#include <com/sun/star/ui/dialogs/CommonFilePickerElementIds.hpp>
#include <com/sun/star/ui/dialogs/ExtendedFilePickerElementIds.hpp>
#include <cppuhelper/interfacecontainer.h>
+#include <cppuhelper/supportsservice.hxx>
#include <osl/diagnose.h>
#include <com/sun/star/ui/dialogs/TemplateDescription.hpp>
#include <com/sun/star/ui/dialogs/ControlActions.hpp>
@@ -658,22 +659,7 @@ throw( uno::RuntimeException )
sal_Bool SAL_CALL SalAquaFilePicker::supportsService( const rtl::OUString& sServiceName )
throw( uno::RuntimeException )
{
- DBG_PRINT_ENTRY(CLASS_NAME, __func__, "service name", sServiceName);
-
- sal_Bool retVal = sal_False;
-
- uno::Sequence <rtl::OUString> supportedServicesNames = FilePicker_getSupportedServiceNames();
-
- for( sal_Int32 n = supportedServicesNames.getLength(); n--; ) {
- if( supportedServicesNames[n] == sServiceName ) {
- retVal = sal_True;
- break;
- }
- }
-
- DBG_PRINT_EXIT(CLASS_NAME, __func__);
-
- return retVal;
+ return cppu:supportsService(this, sServiceName);
}
uno::Sequence<rtl::OUString> SAL_CALL SalAquaFilePicker::getSupportedServiceNames()