lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master ac56835b 7/9: Remove null statements


From: Greg Chicares
Subject: [lmi-commits] [lmi] master ac56835b 7/9: Remove null statements
Date: Fri, 29 Jul 2022 20:42:33 -0400 (EDT)

branch: master
commit ac56835bf74ae2e29d2c08f5e98c460fe690a6bc
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Remove null statements
---
 alert_cgi.cpp             | 2 +-
 alert_cli.cpp             | 2 +-
 census_view.cpp           | 4 ++--
 custom_io_0.cpp           | 2 +-
 getopt_test.cpp           | 2 +-
 gpt_document.cpp          | 2 +-
 ihs_acctval.cpp           | 2 +-
 input_harmonization.cpp   | 6 +++---
 input_sequence.cpp        | 4 ++--
 input_sequence_parser.cpp | 2 +-
 math_functions_test.cpp   | 2 +-
 mec_document.cpp          | 2 +-
 pdf_command_wx.cpp        | 2 +-
 system_command_wx.cpp     | 2 +-
 wx_table_generator.cpp    | 2 +-
 zero.hpp                  | 4 ++--
 16 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/alert_cgi.cpp b/alert_cgi.cpp
index f8abf8cc..d08ae136 100644
--- a/alert_cgi.cpp
+++ b/alert_cgi.cpp
@@ -38,7 +38,7 @@ bool volatile ensure_setup = set_alert_functions
 
 void status_alert(std::string const&)
 {
-    ; // Do nothing.
+    // Do nothing.
 }
 
 // With cgicc, the most natural way to treat any alert that must be
diff --git a/alert_cli.cpp b/alert_cli.cpp
index 05cfaaf6..acaa3ba6 100644
--- a/alert_cli.cpp
+++ b/alert_cli.cpp
@@ -66,7 +66,7 @@ goto ask;
 
 void status_alert(std::string const&)
 {
-    ; // Do nothing.
+    // Do nothing.
 }
 
 void warning_alert(std::string const& s)
diff --git a/census_view.cpp b/census_view.cpp
index 58e77db5..f9bf34ff 100644
--- a/census_view.cpp
+++ b/census_view.cpp
@@ -1813,7 +1813,7 @@ void CensusView::UponPasteCensus(wxCommandEvent&)
         }
     else
         {
-        ; // Do nothing: neither age nor DOB pasted.
+        // Do nothing: neither age nor DOB pasted.
         }
 
     cells.reserve(std::count(census_data.begin(), census_data.end(), '\n'));
@@ -1860,7 +1860,7 @@ void CensusView::UponPasteCensus(wxCommandEvent&)
                 int z = value_cast<int>(values[j]);
                 if(jdn_min <= z && z <= jdn_max)
                     {
-                    ; // Do nothing: JDN is the default expectation.
+                    // Do nothing: JDN is the default expectation.
                     }
                 else if(ymd_min <= z && z <= ymd_max)
                     {
diff --git a/custom_io_0.cpp b/custom_io_0.cpp
index b2c4b1b5..0ad81379 100644
--- a/custom_io_0.cpp
+++ b/custom_io_0.cpp
@@ -136,7 +136,7 @@ std::string adjust_interest_rates
         }
     else
         {
-        ; // Do nothing.
+        // Do nothing.
         }
     return canonicalized_input_sequence(general_account_rate);
 }
diff --git a/getopt_test.cpp b/getopt_test.cpp
index 965b8407..e3a44470 100644
--- a/getopt_test.cpp
+++ b/getopt_test.cpp
@@ -168,7 +168,7 @@ std::string getopt_test::test(int argc, char* argv[])
 
             case '?':
                 {
-                ; // Do nothing.
+                // Do nothing.
                 }
                 break;
 
diff --git a/gpt_document.cpp b/gpt_document.cpp
index ee19f496..0e75bdda 100644
--- a/gpt_document.cpp
+++ b/gpt_document.cpp
@@ -52,7 +52,7 @@ bool gpt_document::OnCreate(wxString const& filename, long 
int flags)
 {
     if(wxDOC_NEW & flags)
         {
-        ; // Do nothing.
+        // Do nothing.
         }
     else
         {
diff --git a/ihs_acctval.cpp b/ihs_acctval.cpp
index 2ca335da..bd263def 100644
--- a/ihs_acctval.cpp
+++ b/ihs_acctval.cpp
@@ -1190,7 +1190,7 @@ void AccountValue::FinalizeYear()
     // that cannot cause the contract to lapse.
     if(Solving && C0 < surr_chg && LapseIgnoresSurrChg)
         {
-        ; // Do nothing.
+        // Do nothing.
         }
     else
         {
diff --git a/input_harmonization.cpp b/input_harmonization.cpp
index 93e9ea4d..300104b4 100644
--- a/input_harmonization.cpp
+++ b/input_harmonization.cpp
@@ -882,7 +882,7 @@ void Input::set_solve_durations()
         {
         case mce_to_year:
             {
-            ; // Do nothing.
+            // Do nothing.
             }
             break;
         case mce_to_age:
@@ -906,7 +906,7 @@ void Input::set_solve_durations()
         {
         case mce_from_year:
             {
-            ; // Do nothing.
+            // Do nothing.
             }
             break;
         case mce_from_age:
@@ -930,7 +930,7 @@ void Input::set_solve_durations()
         {
         case mce_to_year:
             {
-            ; // Do nothing.
+            // Do nothing.
             }
             break;
         case mce_to_age:
diff --git a/input_sequence.cpp b/input_sequence.cpp
index 71a8d873..fbf5b8fe 100644
--- a/input_sequence.cpp
+++ b/input_sequence.cpp
@@ -328,7 +328,7 @@ std::string InputSequence::canonical_form() const
                 {
                 if(1 == i.end_duration - i.begin_duration)
                     {
-                    ; // Do nothing: leave 's' empty.
+                    // Do nothing: leave 's' empty.
                     }
                 else
                     {
@@ -377,7 +377,7 @@ std::string InputSequence::canonical_form() const
             }
         else
             {
-            ; // Do nothing.
+            // Do nothing.
             }
         }
     return oss.str();
diff --git a/input_sequence_parser.cpp b/input_sequence_parser.cpp
index 623041eb..244d3cd0 100644
--- a/input_sequence_parser.cpp
+++ b/input_sequence_parser.cpp
@@ -186,7 +186,7 @@ void SequenceParser::duration_scalar()
         {
         case e_duration:
             {
-            ; // Do nothing.
+            // Do nothing.
             }
             break;
         case e_attained_age:
diff --git a/math_functions_test.cpp b/math_functions_test.cpp
index ef82b170..3d154cb1 100644
--- a/math_functions_test.cpp
+++ b/math_functions_test.cpp
@@ -826,7 +826,7 @@ void sample_results()
         << "  double prec, expm1 and log1p (production)\n"
         << "  " << i_upper_n_over_n_from_i_naive<double,12>()(intrate)
         << "  double prec, pow\n"
-        << std::endl;
+        << std::endl
         ;
 
     fenv_initialize();
diff --git a/mec_document.cpp b/mec_document.cpp
index d0e03d57..1c1d889a 100644
--- a/mec_document.cpp
+++ b/mec_document.cpp
@@ -52,7 +52,7 @@ bool mec_document::OnCreate(wxString const& filename, long 
int flags)
 {
     if(wxDOC_NEW & flags)
         {
-        ; // Do nothing.
+        // Do nothing.
         }
     else
         {
diff --git a/pdf_command_wx.cpp b/pdf_command_wx.cpp
index b432fd00..2193a5de 100644
--- a/pdf_command_wx.cpp
+++ b/pdf_command_wx.cpp
@@ -402,7 +402,7 @@ class table_mixin
                 std::string output_value;
                 if(columns[j].variable_name.empty())
                     {
-                    ; // Separator column: use empty string.
+                    // Separator column: use empty string.
                     }
                 else
                     {
diff --git a/system_command_wx.cpp b/system_command_wx.cpp
index a2bd57b7..57d5d76b 100644
--- a/system_command_wx.cpp
+++ b/system_command_wx.cpp
@@ -84,7 +84,7 @@ void concrete_system_command(std::string const& cmd_line)
     wxFrame const* f =
                                  wxTheApp
         ? dynamic_cast<wxFrame*>(wxTheApp->GetTopWindow())
-        : nullptr;
+        : nullptr
         ;
     bool const b = f && f->GetStatusBar();
     std::ostream null_output {nullptr};
diff --git a/wx_table_generator.cpp b/wx_table_generator.cpp
index c5c83b35..82f8e2d5 100644
--- a/wx_table_generator.cpp
+++ b/wx_table_generator.cpp
@@ -441,7 +441,7 @@ void wx_table_generator::enroll_column(column_parameters 
const& z)
             break;
         case oe_elastic:
             {
-            ; // Do nothing: 'width' already initialized to zero.
+            // Do nothing: 'width' already initialized to zero.
             }
             break;
         }
diff --git a/zero.hpp b/zero.hpp
index 9e9d01f2..26dad28b 100644
--- a/zero.hpp
+++ b/zero.hpp
@@ -185,7 +185,7 @@ inline double binary64_midpoint(double d0, double d1)
         {d0 = std::copysign(d0, d1);}
     else if(0.0 == s1)
         {d1 = std::copysign(d1, d0);}
-    else {;} // Do nothing.
+    else {} // Do nothing.
 
     u_dbl_int_t u0;
     u_dbl_int_t u1;
@@ -569,7 +569,7 @@ root_type lmi_root
                 }
             else
                 {
-                ; // Do nothing.
+                // Do nothing.
                 }
             }
         if(sprauchling_limit < n_eval)



reply via email to

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