loplugin:unnecessaryoverride (dtors) in basic

Change-Id: I5756b96bcc7563b82e35d3cdfdda3b80692767e5
This commit is contained in:
Stephan Bergmann
2016-11-23 18:37:02 +01:00
parent 5d06df27ad
commit f338935019
4 changed files with 1 additions and 21 deletions

View File

@@ -25,7 +25,6 @@ namespace
{ {
public: public:
VBATest() : BootstrapFixture(true, false) {} VBATest() : BootstrapFixture(true, false) {}
virtual ~VBATest() override {}
void testMiscVBAFunctions(); void testMiscVBAFunctions();
void testMiscOLEStuff(); void testMiscOLEStuff();
// Adds code needed to register the test suite // Adds code needed to register the test suite

View File

@@ -38,7 +38,7 @@ class ErrObject : public ::cppu::WeakImplHelper< vba::XErrObject,
public: public:
ErrObject(); ErrObject();
virtual ~ErrObject() override;
// Attributes // Attributes
virtual ::sal_Int32 SAL_CALL getNumber() throw (uno::RuntimeException, std::exception) override; virtual ::sal_Int32 SAL_CALL getNumber() throw (uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setNumber( ::sal_Int32 _number ) throw (uno::RuntimeException, std::exception) override; virtual void SAL_CALL setNumber( ::sal_Int32 _number ) throw (uno::RuntimeException, std::exception) override;
@@ -62,11 +62,6 @@ public:
const uno::Any& HelpFile, const uno::Any& HelpContext ) throw (uno::RuntimeException); const uno::Any& HelpFile, const uno::Any& HelpContext ) throw (uno::RuntimeException);
}; };
ErrObject::~ErrObject()
{
}
ErrObject::ErrObject() : m_nNumber(0), m_nHelpContext(0) ErrObject::ErrObject() : m_nNumber(0), m_nHelpContext(0)
{ {
} }

View File

@@ -3826,7 +3826,6 @@ public:
OUString aPrefixName; OUString aPrefixName;
explicit BasicAllListener_Impl( const OUString& aPrefixName ); explicit BasicAllListener_Impl( const OUString& aPrefixName );
virtual ~BasicAllListener_Impl() override;
// Methods of XAllListener // Methods of XAllListener
virtual void SAL_CALL firing(const AllEventObject& Event) throw ( RuntimeException, std::exception ) override; virtual void SAL_CALL firing(const AllEventObject& Event) throw ( RuntimeException, std::exception ) override;
@@ -3842,12 +3841,6 @@ BasicAllListener_Impl::BasicAllListener_Impl(const OUString& aPrefixName_)
{ {
} }
BasicAllListener_Impl::~BasicAllListener_Impl()
{
}
void BasicAllListener_Impl::firing_impl( const AllEventObject& Event, Any* pRet ) void BasicAllListener_Impl::firing_impl( const AllEventObject& Event, Any* pRet )
{ {
SolarMutexGuard guard; SolarMutexGuard guard;
@@ -4249,8 +4242,6 @@ class ModuleInvocationProxy : public WeakImplHelper< XInvocation, XComponent >
public: public:
ModuleInvocationProxy( const OUString& aPrefix, SbxObjectRef xScopeObj ); ModuleInvocationProxy( const OUString& aPrefix, SbxObjectRef xScopeObj );
virtual ~ModuleInvocationProxy() override
{}
// XInvocation // XInvocation
virtual Reference< XIntrospectionAccess > SAL_CALL getIntrospection() throw(std::exception) override; virtual Reference< XIntrospectionAccess > SAL_CALL getIntrospection() throw(std::exception) override;

View File

@@ -99,7 +99,6 @@ class DocObjectWrapper : public DocObjectWrapper_BASE
public: public:
explicit DocObjectWrapper( SbModule* pMod ); explicit DocObjectWrapper( SbModule* pMod );
virtual ~DocObjectWrapper() override;
virtual void SAL_CALL acquire() throw() override; virtual void SAL_CALL acquire() throw() override;
virtual void SAL_CALL release() throw() override; virtual void SAL_CALL release() throw() override;
@@ -185,10 +184,6 @@ DocObjectWrapper::release() throw ()
OWeakObject::release(); OWeakObject::release();
} }
DocObjectWrapper::~DocObjectWrapper()
{
}
Sequence< Type > SAL_CALL DocObjectWrapper::getTypes() Sequence< Type > SAL_CALL DocObjectWrapper::getTypes()
throw ( RuntimeException, std::exception ) throw ( RuntimeException, std::exception )
{ {