lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] odd/rules_of_n 4eab8b4a 1/5: Follow the Rule of Zero


From: Greg Chicares
Subject: [lmi-commits] [lmi] odd/rules_of_n 4eab8b4a 1/5: Follow the Rule of Zero
Date: Sat, 9 Jul 2022 18:31:23 -0400 (EDT)

branch: odd/rules_of_n
commit 4eab8b4a6c92398c9f3abd77e3940cbe9f8d2e78
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Follow the Rule of Zero
    
    Identified by clang's '-Wdeprecated-copy-with-dtor'.
---
 dbvalue.hpp            | 1 -
 fund_data.hpp          | 1 -
 gpt_server.hpp         | 1 -
 ihs_irc7702a.hpp       | 1 -
 illustrator.hpp        | 1 -
 mec_server.hpp         | 1 -
 rounding_rules.hpp     | 1 -
 rtti_lmi.hpp           | 1 -
 stratified_charges.hpp | 1 -
 test_coding_rules.cpp  | 3 ---
 yare_input.hpp         | 1 -
 11 files changed, 13 deletions(-)

diff --git a/dbvalue.hpp b/dbvalue.hpp
index bdb6ef16..6ee024b9 100644
--- a/dbvalue.hpp
+++ b/dbvalue.hpp
@@ -77,7 +77,6 @@ class LMI_SO database_entity final
         ,double             datum
         ,std::string const& gloss = std::string()
         );
-    ~database_entity() = default;
 
     bool operator==(database_entity const&) const;
 
diff --git a/fund_data.hpp b/fund_data.hpp
index df629100..15478273 100644
--- a/fund_data.hpp
+++ b/fund_data.hpp
@@ -47,7 +47,6 @@ class LMI_SO FundInfo final
         ,std::string const& LongName
         ,std::string const& gloss = std::string()
         );
-    ~FundInfo() = default;
 
     double ScalarIMF() const;
     std::string const& ShortName() const;
diff --git a/gpt_server.hpp b/gpt_server.hpp
index dc80b46d..cafeb177 100644
--- a/gpt_server.hpp
+++ b/gpt_server.hpp
@@ -47,7 +47,6 @@ class LMI_SO gpt_server final
 {
   public:
     explicit gpt_server(mcenum_emission);
-    ~gpt_server() = default;
 
     bool operator()(fs::path const&);
     bool operator()(fs::path const&, gpt_input const&);
diff --git a/ihs_irc7702a.hpp b/ihs_irc7702a.hpp
index 5230c875..16ebacc4 100644
--- a/ihs_irc7702a.hpp
+++ b/ihs_irc7702a.hpp
@@ -66,7 +66,6 @@ class Irc7702A final
 //      ,std::vector<double> const&  a_PolFee
 // TAXATION !! probably other arguments are needed for reproposals
         );
-    ~Irc7702A() = default;
 
     void Initialize7702A
         (bool   a_Ignore
diff --git a/illustrator.hpp b/illustrator.hpp
index 1b8369a9..7971e467 100644
--- a/illustrator.hpp
+++ b/illustrator.hpp
@@ -42,7 +42,6 @@ class LMI_SO illustrator final
 {
   public:
     explicit illustrator(mcenum_emission);
-    ~illustrator() = default;
 
     bool operator()(fs::path const&);
     bool operator()(fs::path const&, Input const&);
diff --git a/mec_server.hpp b/mec_server.hpp
index d30c7237..fb6b707c 100644
--- a/mec_server.hpp
+++ b/mec_server.hpp
@@ -47,7 +47,6 @@ class LMI_SO mec_server final
 {
   public:
     explicit mec_server(mcenum_emission);
-    ~mec_server() = default;
 
     bool operator()(fs::path const&);
     bool operator()(fs::path const&, mec_input const&);
diff --git a/rounding_rules.hpp b/rounding_rules.hpp
index 7ba29225..402dcb6d 100644
--- a/rounding_rules.hpp
+++ b/rounding_rules.hpp
@@ -48,7 +48,6 @@ class LMI_SO rounding_parameters final
         ,rounding_style     style
         ,std::string const& gloss = std::string()
         );
-    ~rounding_parameters() = default;
 
     bool operator==(rounding_parameters const&) const;
 
diff --git a/rtti_lmi.hpp b/rtti_lmi.hpp
index 4cbafed8..00e4c5ac 100644
--- a/rtti_lmi.hpp
+++ b/rtti_lmi.hpp
@@ -124,7 +124,6 @@ class TypeInfo final
 
   public:
     TypeInfo(std::type_info const& z): ti_(&z) {}
-    ~TypeInfo() = default;
 
     bool operator==(TypeInfo const& z) const {return *z.ti_ == *ti_;}
     bool  operator<(TypeInfo const& z) const {return ti_->before(*z.ti_);}
diff --git a/stratified_charges.hpp b/stratified_charges.hpp
index df4ce242..5d0bac87 100644
--- a/stratified_charges.hpp
+++ b/stratified_charges.hpp
@@ -77,7 +77,6 @@ class LMI_SO stratified_entity final
         ,std::vector<double> const& values
         ,std::string const&         gloss = std::string()
         );
-    ~stratified_entity() = default;
 
     bool operator==(stratified_entity const&) const;
 
diff --git a/test_coding_rules.cpp b/test_coding_rules.cpp
index 7ec5afd5..21d0a6c7 100644
--- a/test_coding_rules.cpp
+++ b/test_coding_rules.cpp
@@ -1169,9 +1169,6 @@ void enforce_taboos(file const& f)
 class statistics
 {
   public:
-    statistics() = default;
-    ~statistics() = default;
-
     statistics& operator+=(statistics const&);
 
     static statistics analyze_file(file const&);
diff --git a/yare_input.hpp b/yare_input.hpp
index b106d1f5..b202f59d 100644
--- a/yare_input.hpp
+++ b/yare_input.hpp
@@ -54,7 +54,6 @@ class yare_input final
 {
   public:
     explicit yare_input(Input const&);
-    ~yare_input() = default;
 
     int                               IssueAge                        ;
     int                               RetirementAge                   ;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]