loplugin:unnecessaryoverride (dtors) in eventattacher

Change-Id: I548d90cb5aec077b78965f34b9275ef6aef315b0
This commit is contained in:
Stephan Bergmann 2016-12-05 09:04:29 +01:00
parent 13ce97351d
commit 40c0438386

View File

@ -209,7 +209,6 @@ class EventAttacherImpl : public WeakImplHelper < XEventAttacher2, XInitializati
{ {
public: public:
explicit EventAttacherImpl( const Reference< XComponentContext >& ); explicit EventAttacherImpl( const Reference< XComponentContext >& );
virtual ~EventAttacherImpl() override;
// XServiceInfo // XServiceInfo
virtual OUString SAL_CALL getImplementationName( ) throw(RuntimeException, std::exception) override; virtual OUString SAL_CALL getImplementationName( ) throw(RuntimeException, std::exception) override;
@ -283,12 +282,6 @@ EventAttacherImpl::EventAttacherImpl( const Reference< XComponentContext >& rxCo
{ {
} }
EventAttacherImpl::~EventAttacherImpl()
{
}
Reference< XInterface > SAL_CALL EventAttacherImpl_CreateInstance( const Reference< XMultiServiceFactory >& rSMgr ) throw( Exception ) Reference< XInterface > SAL_CALL EventAttacherImpl_CreateInstance( const Reference< XMultiServiceFactory >& rSMgr ) throw( Exception )
{ {
XEventAttacher *pEventAttacher = static_cast<XEventAttacher*>(new EventAttacherImpl( comphelper::getComponentContext(rSMgr) )); XEventAttacher *pEventAttacher = static_cast<XEventAttacher*>(new EventAttacherImpl( comphelper::getComponentContext(rSMgr) ));