From b4adb0c533cc99633f360cb12014aa35599d943a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 24 Jan 2017 11:31:51 +0200 Subject: loplugin: unnecessary destructor forms..idlc Change-Id: I765e0fa61f8134a60e5ea24452c6bbcb3fa8b054 Reviewed-on: https://gerrit.libreoffice.org/33492 Tested-by: Jenkins Reviewed-by: Noel Grandin --- idlc/inc/astattribute.hxx | 1 - idlc/inc/astbasetype.hxx | 2 -- idlc/inc/astconstants.hxx | 1 - idlc/inc/astexception.hxx | 2 -- idlc/inc/astinterfacemember.hxx | 1 - idlc/inc/astmember.hxx | 2 -- idlc/inc/astmodule.hxx | 1 - idlc/inc/astneeds.hxx | 1 - idlc/inc/astobserves.hxx | 1 - idlc/inc/astoperation.hxx | 1 - idlc/inc/astparameter.hxx | 2 -- idlc/inc/astservice.hxx | 1 - idlc/inc/astservicemember.hxx | 1 - idlc/inc/asttype.hxx | 2 -- idlc/inc/asttypedef.hxx | 2 -- 15 files changed, 21 deletions(-) (limited to 'idlc') diff --git a/idlc/inc/astattribute.hxx b/idlc/inc/astattribute.hxx index 273e4209e5a4..030f6e12f9de 100644 --- a/idlc/inc/astattribute.hxx +++ b/idlc/inc/astattribute.hxx @@ -41,7 +41,6 @@ public: , m_flags(flags) , m_pType(pType) {} - virtual ~AstAttribute() override {} void setExceptions( OUString const * getDoc, DeclList const * getExc, diff --git a/idlc/inc/astbasetype.hxx b/idlc/inc/astbasetype.hxx index 35d0cc1276d0..65c0f4044d26 100644 --- a/idlc/inc/astbasetype.hxx +++ b/idlc/inc/astbasetype.hxx @@ -31,8 +31,6 @@ public: , m_exprType(type) {} - virtual ~AstBaseType() override {} - virtual bool isUnsigned() const override { switch (m_exprType) { case ET_ushort: diff --git a/idlc/inc/astconstants.hxx b/idlc/inc/astconstants.hxx index fb990f92dda8..9f787e5b1703 100644 --- a/idlc/inc/astconstants.hxx +++ b/idlc/inc/astconstants.hxx @@ -27,7 +27,6 @@ public: AstConstants(const OString& name, AstScope* pScope) : AstModule(NT_constants, name, pScope) {} - virtual ~AstConstants() override {} }; #endif // INCLUDED_IDLC_INC_ASTCONSTANTS_HXX diff --git a/idlc/inc/astexception.hxx b/idlc/inc/astexception.hxx index e00e28895b11..b69f26f52ff9 100644 --- a/idlc/inc/astexception.hxx +++ b/idlc/inc/astexception.hxx @@ -27,8 +27,6 @@ public: AstException(const OString& name, AstException* pBaseType, AstScope* pScope) : AstStruct(NT_exception, name, pBaseType, pScope) {} - - virtual ~AstException() override {} }; #endif // INCLUDED_IDLC_INC_ASTEXCEPTION_HXX diff --git a/idlc/inc/astinterfacemember.hxx b/idlc/inc/astinterfacemember.hxx index a627b0d91bfe..ae381afbb58a 100644 --- a/idlc/inc/astinterfacemember.hxx +++ b/idlc/inc/astinterfacemember.hxx @@ -30,7 +30,6 @@ public: , m_flags(flags) , m_pRealInterface(pRealInterface) {} - virtual ~AstInterfaceMember() override {} AstInterface* getRealInterface() { return m_pRealInterface; } diff --git a/idlc/inc/astmember.hxx b/idlc/inc/astmember.hxx index 0563eb8c7971..43597d125d87 100644 --- a/idlc/inc/astmember.hxx +++ b/idlc/inc/astmember.hxx @@ -31,8 +31,6 @@ public: AstType const * pType, OString const & name, AstScope * pScope): AstDeclaration(NT_member, name, pScope), m_pType(pType) {} - virtual ~AstMember() override {} - AstType const * getType() const { return m_pType; } protected: diff --git a/idlc/inc/astmodule.hxx b/idlc/inc/astmodule.hxx index 6f41b2d7cabe..da56f8298b2a 100644 --- a/idlc/inc/astmodule.hxx +++ b/idlc/inc/astmodule.hxx @@ -34,7 +34,6 @@ public: : AstDeclaration(type, name, pScope) , AstScope(type) {} - virtual ~AstModule() override {} virtual bool dump(RegistryKey& rKey) override; }; diff --git a/idlc/inc/astneeds.hxx b/idlc/inc/astneeds.hxx index 0df77f2edd01..6b456b9da65f 100644 --- a/idlc/inc/astneeds.hxx +++ b/idlc/inc/astneeds.hxx @@ -28,7 +28,6 @@ public: : AstDeclaration(NT_needs, name, pScope) , m_pRealService(pRealService) {} - virtual ~AstNeeds() override {} AstService* getRealService() { return m_pRealService; } diff --git a/idlc/inc/astobserves.hxx b/idlc/inc/astobserves.hxx index 8e4c404eb122..b779a7b81fbe 100644 --- a/idlc/inc/astobserves.hxx +++ b/idlc/inc/astobserves.hxx @@ -28,7 +28,6 @@ public: : AstDeclaration(NT_observes, name, pScope) , m_pRealInterface(pRealInterface) {} - virtual ~AstObserves() override {} AstInterface* getRealInterface() { return m_pRealInterface; } diff --git a/idlc/inc/astoperation.hxx b/idlc/inc/astoperation.hxx index a4837cbe5ab0..45b3faad1a7b 100644 --- a/idlc/inc/astoperation.hxx +++ b/idlc/inc/astoperation.hxx @@ -35,7 +35,6 @@ public: , AstScope(NT_operation) , m_pReturnType(pReturnType) {} - virtual ~AstOperation() override {} bool isVariadic() const; diff --git a/idlc/inc/astparameter.hxx b/idlc/inc/astparameter.hxx index ba7933c0ea09..f50f021c6429 100644 --- a/idlc/inc/astparameter.hxx +++ b/idlc/inc/astparameter.hxx @@ -32,8 +32,6 @@ public: AstMember(NT_parameter, type, name, scope), m_direction(direction), m_rest(rest) {} - virtual ~AstParameter() override {} - Direction getDirection() const { return m_direction; } bool isRest() const { return m_rest; } diff --git a/idlc/inc/astservice.hxx b/idlc/inc/astservice.hxx index 8a7c0cf7edd5..4747005cc24b 100644 --- a/idlc/inc/astservice.hxx +++ b/idlc/inc/astservice.hxx @@ -38,7 +38,6 @@ public: , m_singleInterfaceBasedService(false) , m_defaultConstructor(false) {} - virtual ~AstService() override {} virtual bool dump(RegistryKey& rKey) override; diff --git a/idlc/inc/astservicemember.hxx b/idlc/inc/astservicemember.hxx index eba1cd95aa45..1254848532fb 100644 --- a/idlc/inc/astservicemember.hxx +++ b/idlc/inc/astservicemember.hxx @@ -30,7 +30,6 @@ public: , m_flags(flags) , m_pRealService(pRealService) {} - virtual ~AstServiceMember() override {} AstService* getRealService() { return m_pRealService; } diff --git a/idlc/inc/asttype.hxx b/idlc/inc/asttype.hxx index 083bd3b42184..89c16f73ba07 100644 --- a/idlc/inc/asttype.hxx +++ b/idlc/inc/asttype.hxx @@ -28,8 +28,6 @@ public: : AstDeclaration(type, name, pScope) {} - virtual ~AstType() override {} - virtual bool isUnsigned() const { return false; } }; diff --git a/idlc/inc/asttypedef.hxx b/idlc/inc/asttypedef.hxx index 64eb14848d71..3b097cc136af 100644 --- a/idlc/inc/asttypedef.hxx +++ b/idlc/inc/asttypedef.hxx @@ -28,8 +28,6 @@ public: AstType const * baseType, OString const & name, AstScope * scope): AstType(NT_typedef, name, scope), m_pBaseType(baseType) {} - virtual ~AstTypeDef() override {} - AstType const * getBaseType() const { return m_pBaseType; } -- cgit