[glom] C+11: Use of override keyword on destructors.



commit 44e021ab868afa78835e5d5fffed41dd8bdab398
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Feb 9 09:35:59 2016 +0100

    C+11: Use of override keyword on destructors.
    
    Found by clang-tidy's misc-use-override check.

 glom/libglom/data_structure/layout/layoutgroup.h   |    2 +-
 glom/libglom/data_structure/layout/layoutitem.h    |    2 +-
 .../layout/report_parts/layoutitem_groupby.h       |    2 +-
 glom/libglom/document/bakery/document_xml.h        |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/glom/libglom/data_structure/layout/layoutgroup.h 
b/glom/libglom/data_structure/layout/layoutgroup.h
index 8c34a0c..d934a60 100644
--- a/glom/libglom/data_structure/layout/layoutgroup.h
+++ b/glom/libglom/data_structure/layout/layoutgroup.h
@@ -38,7 +38,7 @@ public:
   LayoutGroup(LayoutGroup&& src) = delete;
   LayoutGroup& operator=(const LayoutGroup& src);
   LayoutGroup& operator=(LayoutGroup&& src) = delete;
-  virtual ~LayoutGroup();
+  ~LayoutGroup() override;
 
   LayoutItem* clone() const override;
 
diff --git a/glom/libglom/data_structure/layout/layoutitem.h b/glom/libglom/data_structure/layout/layoutitem.h
index 15424f9..633e1db 100644
--- a/glom/libglom/data_structure/layout/layoutitem.h
+++ b/glom/libglom/data_structure/layout/layoutitem.h
@@ -36,7 +36,7 @@ public:
   LayoutItem(LayoutItem&& src) = delete;
   LayoutItem& operator=(const LayoutItem& src);
   LayoutItem& operator=(LayoutItem&& src) = delete;
-  virtual ~LayoutItem();
+  ~LayoutItem() override;
 
   /** Create a new copied instance.
    * This allows us to deep-copy a list of LayoutItems.
diff --git a/glom/libglom/data_structure/layout/report_parts/layoutitem_groupby.h 
b/glom/libglom/data_structure/layout/report_parts/layoutitem_groupby.h
index 4e216d2..4fb25f9 100644
--- a/glom/libglom/data_structure/layout/report_parts/layoutitem_groupby.h
+++ b/glom/libglom/data_structure/layout/report_parts/layoutitem_groupby.h
@@ -43,7 +43,7 @@ public:
   LayoutItem_GroupBy(LayoutItem_GroupBy&& src) = delete;
   LayoutItem_GroupBy& operator=(const LayoutItem_GroupBy& src);
   LayoutItem_GroupBy& operator=(LayoutItem_GroupBy&& src) = delete;
-  virtual ~LayoutItem_GroupBy();
+  ~LayoutItem_GroupBy() override;
 
   LayoutItem* clone() const override;
 
diff --git a/glom/libglom/document/bakery/document_xml.h b/glom/libglom/document/bakery/document_xml.h
index cc0cdd6..6fe7a9a 100644
--- a/glom/libglom/document/bakery/document_xml.h
+++ b/glom/libglom/document/bakery/document_xml.h
@@ -35,7 +35,7 @@ class Document_XML : public GlomBakery::Document
 {
 public: 
   Document_XML();
-  virtual ~Document_XML();
+  ~Document_XML() override;
 
   bool load_after(int& failure_code) override;
   bool save_before() override;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]