From 31fffe5538fd8011afa0076fdca39379c28fcff5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 12 Dec 2019 11:07:24 +0100 Subject: Remove some redundant user-provided dtors ...which silences various -Wdeprecated-copy-dtor warnings from Clang 10 trunk about copy functions being implicitly defined as non-deleted even though the class has a user-declared dtor Change-Id: I3409d403c3c709de4ad94eccbc2d7869e41847cc Reviewed-on: https://gerrit.libreoffice.org/85032 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- basctl/source/basicide/bastypes.cxx | 6 ------ basctl/source/inc/bastypes.hxx | 2 -- 2 files changed, 8 deletions(-) (limited to 'basctl') diff --git a/basctl/source/basicide/bastypes.cxx b/basctl/source/basicide/bastypes.cxx index f38ba5d33e8c..006c6b00bc22 100644 --- a/basctl/source/basicide/bastypes.cxx +++ b/basctl/source/basicide/bastypes.cxx @@ -682,9 +682,6 @@ LibInfo::Key::Key (ScriptDocument const& rDocument, OUString const& rLibName) : m_aDocument(rDocument), m_aLibName(rLibName) { } -LibInfo::Key::~Key () -{ } - bool LibInfo::Key::operator == (Key const& rKey) const { return m_aDocument == rKey.m_aDocument && m_aLibName == rKey.m_aLibName; @@ -706,9 +703,6 @@ LibInfo::Item::Item ( m_eCurrentType(eCurrentType) { } -LibInfo::Item::~Item () -{ } - static bool QueryDel(const OUString& rName, const OUString &rStr, weld::Widget* pParent) { OUString aName = "\'" + rName + "\'"; diff --git a/basctl/source/inc/bastypes.hxx b/basctl/source/inc/bastypes.hxx index 3063c2bd6827..8ac2a4b3a9b1 100644 --- a/basctl/source/inc/bastypes.hxx +++ b/basctl/source/inc/bastypes.hxx @@ -257,7 +257,6 @@ private: public: Key (ScriptDocument const&, OUString const& rLibName); - ~Key (); public: bool operator == (Key const&) const; struct Hash @@ -276,7 +275,6 @@ public: public: Item (OUString const& rCurrentName, ItemType eCurrentType); - ~Item (); const OUString& GetCurrentName() const { return m_aCurrentName; } ItemType GetCurrentType() const { return m_eCurrentType; } }; -- cgit