From 5ebfc3ad9b27eed8571fa501ed3727218e0008fb Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 24 Nov 2016 11:27:53 +0100 Subject: loplugin:unnecessaryoverride (dtors) in writerfilter Change-Id: I2d21d47e8471daf3125a6c81b5b3919820caef46 --- writerfilter/source/dmapper/GraphicImport.cxx | 6 ------ writerfilter/source/filter/RtfFilter.cxx | 3 --- writerfilter/source/filter/WriterFilter.cxx | 1 - writerfilter/source/filter/WriterFilterDetection.cxx | 3 --- 4 files changed, 13 deletions(-) (limited to 'writerfilter') diff --git a/writerfilter/source/dmapper/GraphicImport.cxx b/writerfilter/source/dmapper/GraphicImport.cxx index 837308cc9659..3531093abb24 100644 --- a/writerfilter/source/dmapper/GraphicImport.cxx +++ b/writerfilter/source/dmapper/GraphicImport.cxx @@ -80,7 +80,6 @@ class XInputStreamHelper : public cppu::WeakImplHelper sal_Int32 m_nHeaderLength; public: XInputStreamHelper(const sal_uInt8* buf, size_t len); - virtual ~XInputStreamHelper() override; virtual ::sal_Int32 SAL_CALL readBytes( uno::Sequence< ::sal_Int8 >& aData, ::sal_Int32 nBytesToRead ) throw (io::NotConnectedException, io::BufferSizeExceededException, io::IOException, uno::RuntimeException, std::exception) override; virtual ::sal_Int32 SAL_CALL readSomeBytes( uno::Sequence< ::sal_Int8 >& aData, ::sal_Int32 nMaxBytesToRead ) throw (io::NotConnectedException, io::BufferSizeExceededException, io::IOException, uno::RuntimeException, std::exception) override; @@ -100,11 +99,6 @@ XInputStreamHelper::XInputStreamHelper(const sal_uInt8* buf, size_t len) : m_nHeaderLength = 0; } - -XInputStreamHelper::~XInputStreamHelper() -{ -} - sal_Int32 XInputStreamHelper::readBytes( uno::Sequence& aData, sal_Int32 nBytesToRead ) throw (io::NotConnectedException, io::BufferSizeExceededException, io::IOException, uno::RuntimeException, std::exception) { diff --git a/writerfilter/source/filter/RtfFilter.cxx b/writerfilter/source/filter/RtfFilter.cxx index e734fb669752..ad7ed9a8d847 100644 --- a/writerfilter/source/filter/RtfFilter.cxx +++ b/writerfilter/source/filter/RtfFilter.cxx @@ -53,7 +53,6 @@ class RtfFilter : public cppu::WeakImplHelper public: explicit RtfFilter(const uno::Reference& xContext); - ~RtfFilter() override; // XFilter sal_Bool SAL_CALL filter(const uno::Sequence& rDescriptor) throw (uno::RuntimeException, std::exception) override; @@ -80,8 +79,6 @@ RtfFilter::RtfFilter(const uno::Reference< uno::XComponentContext >& rxContext) { } -RtfFilter::~RtfFilter() = default; - sal_Bool RtfFilter::filter(const uno::Sequence< beans::PropertyValue >& aDescriptor) throw(uno::RuntimeException, std::exception) { sal_uInt32 nStartTime = osl_getGlobalTimer(); diff --git a/writerfilter/source/filter/WriterFilter.cxx b/writerfilter/source/filter/WriterFilter.cxx index c59718f85a2f..6ff2f7a73788 100644 --- a/writerfilter/source/filter/WriterFilter.cxx +++ b/writerfilter/source/filter/WriterFilter.cxx @@ -98,7 +98,6 @@ public: explicit WriterFilter(const uno::Reference& rxContext) : m_xContext(rxContext) {} - ~WriterFilter() override = default; // XFilter sal_Bool SAL_CALL filter(const uno::Sequence& rDescriptor) throw (uno::RuntimeException, std::exception) override; diff --git a/writerfilter/source/filter/WriterFilterDetection.cxx b/writerfilter/source/filter/WriterFilterDetection.cxx index 442eaf072f09..f72323b8cc1a 100644 --- a/writerfilter/source/filter/WriterFilterDetection.cxx +++ b/writerfilter/source/filter/WriterFilterDetection.cxx @@ -35,7 +35,6 @@ class WriterFilterDetection : public cppu::WeakImplHelper { public: explicit WriterFilterDetection(); - ~WriterFilterDetection() override; //XExtendedFilterDetection OUString SAL_CALL detect(uno::Sequence& Descriptor) throw (uno::RuntimeException, std::exception) override; @@ -52,8 +51,6 @@ WriterFilterDetection::WriterFilterDetection() { } -WriterFilterDetection::~WriterFilterDetection() = default; - OUString WriterFilterDetection::detect(uno::Sequence& rDescriptor) throw (uno::RuntimeException, std::exception) { OUString sTypeName; -- cgit