summaryrefslogtreecommitdiff
path: root/writerperfect/source/writer/MWAWImportFilter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'writerperfect/source/writer/MWAWImportFilter.cxx')
-rw-r--r--writerperfect/source/writer/MWAWImportFilter.cxx14
1 files changed, 3 insertions, 11 deletions
diff --git a/writerperfect/source/writer/MWAWImportFilter.cxx b/writerperfect/source/writer/MWAWImportFilter.cxx
index 1640366464cb..afaabc85061c 100644
--- a/writerperfect/source/writer/MWAWImportFilter.cxx
+++ b/writerperfect/source/writer/MWAWImportFilter.cxx
@@ -16,11 +16,6 @@
#include "MWAWImportFilter.hxx"
-using com::sun::star::uno::RuntimeException;
-using com::sun::star::uno::Sequence;
-using com::sun::star::uno::XComponentContext;
-using com::sun::star::uno::XInterface;
-
static bool handleEmbeddedMWAWGraphicObject(const librevenge::RVNGBinaryData& data,
OdfDocumentHandler* pHandler,
const OdfStreamType streamType)
@@ -108,13 +103,10 @@ sal_Bool SAL_CALL MWAWImportFilter::supportsService(const OUString& rServiceName
return cppu::supportsService(this, rServiceName);
}
-Sequence<OUString> SAL_CALL MWAWImportFilter::getSupportedServiceNames()
+css::uno::Sequence<OUString> SAL_CALL MWAWImportFilter::getSupportedServiceNames()
{
- Sequence<OUString> aRet(2);
- OUString* pArray = aRet.getArray();
- pArray[0] = "com.sun.star.document.ImportFilter";
- pArray[1] = "com.sun.star.document.ExtendedTypeDetection";
- return aRet;
+ return css::uno::Sequence<OUString>{ "com.sun.star.document.ImportFilter",
+ "com.sun.star.document.ExtendedTypeDetection" };
}
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*