lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 8a722b3 2/7: Refactor for concision


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 8a722b3 2/7: Refactor for concision
Date: Thu, 14 Jun 2018 10:27:41 -0400 (EDT)

branch: master
commit 8a722b30ad7517e2a0a2a4efea0b50cb59c1f87a
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Refactor for concision
---
 census_view.cpp | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/census_view.cpp b/census_view.cpp
index c2895f4..e6ca9d7 100644
--- a/census_view.cpp
+++ b/census_view.cpp
@@ -1811,12 +1811,10 @@ void CensusView::DoPasteCensusOut() const
     std::vector<std::string> const& 
all_headers(case_parms()[0].member_names());
     for(auto const& header : all_headers)
         {
-        if(column_value_varies_across_cells(header))
+        bool const varies = column_value_varies_across_cells(header);
+        if(header != "UseDOB" && header != "IssueAge" && varies)
             {
-            if(header != "UseDOB" && header != "IssueAge")
-                {
-                distinct_headers.push_back(header);
-                }
+            distinct_headers.push_back(header);
             }
         }
 



reply via email to

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