summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/exceldetect.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/unoobj/exceldetect.cxx')
-rw-r--r--sc/source/ui/unoobj/exceldetect.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/sc/source/ui/unoobj/exceldetect.cxx b/sc/source/ui/unoobj/exceldetect.cxx
index 5440c621ebdb..69dc7731196e 100644
--- a/sc/source/ui/unoobj/exceldetect.cxx
+++ b/sc/source/ui/unoobj/exceldetect.cxx
@@ -11,6 +11,7 @@
#include <com/sun/star/io/XInputStream.hpp>
#include <com/sun/star/ucb/XContent.hpp>
+#include <cppuhelper/supportsservice.hxx>
#include "svl/itemset.hxx"
#include "svl/eitem.hxx"
@@ -33,14 +34,7 @@ OUString ScExcelBiffDetect::getImplementationName() throw (uno::RuntimeException
sal_Bool ScExcelBiffDetect::supportsService( const OUString& aName ) throw (uno::RuntimeException)
{
- uno::Sequence<OUString> aSrvNames = getSupportedServiceNames();
- const OUString* pArray = aSrvNames.getConstArray();
- for (sal_Int32 i = 0; i < aSrvNames.getLength(); ++i, ++pArray)
- {
- if (*pArray == aName)
- return true;
- }
- return false;
+ return cppu::supportsService(this, aName);
}
uno::Sequence<OUString> ScExcelBiffDetect::getSupportedServiceNames() throw (uno::RuntimeException)