lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 72362d3 2/4: Improve concinnity


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 72362d3 2/4: Improve concinnity
Date: Sun, 26 Feb 2017 14:54:08 -0500 (EST)

branch: master
commit 72362d3674d871fb84692d53ac1cafbda3ca2f51
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Improve concinnity
    
    Used the same name for local variables of the same nature.
---
 input_sequence.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/input_sequence.cpp b/input_sequence.cpp
index ba404cd..36d6533 100644
--- a/input_sequence.cpp
+++ b/input_sequence.cpp
@@ -208,13 +208,13 @@ void InputSequence::initialize_from_vector(std::vector<T> 
const& v)
     bool const T_is_string = std::is_same<T,std::string>::value;
     static_assert(T_is_double || T_is_string, "");
 
-    ValueInterval dummy;
-    dummy.value_is_keyword = T_is_string;
+    ValueInterval default_interval;
+    default_interval.value_is_keyword = T_is_string;
 
     T prior_value = v.empty() ? T() : v.front();
     T current_value = prior_value;
 
-    intervals_.push_back(dummy);
+    intervals_.push_back(default_interval);
     set_value(intervals_.back(), current_value);
 
     for(auto const& vi : v)
@@ -227,7 +227,7 @@ void InputSequence::initialize_from_vector(std::vector<T> 
const& v)
         else
             {
             int value_change_duration = intervals_.back().end_duration;
-            intervals_.push_back(dummy);
+            intervals_.push_back(default_interval);
             set_value(intervals_.back(), current_value);
             intervals_.back().begin_duration = value_change_duration;
             intervals_.back().end_duration = ++value_change_duration;



reply via email to

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