lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [5659] Refactor for concinnity


From: Greg Chicares
Subject: [lmi-commits] [5659] Refactor for concinnity
Date: Fri, 11 Jan 2013 11:13:26 +0000

Revision: 5659
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=5659
Author:   chicares
Date:     2013-01-11 11:13:25 +0000 (Fri, 11 Jan 2013)
Log Message:
-----------
Refactor for concinnity

Modified Paths:
--------------
    lmi/trunk/rounding_document.cpp

Modified: lmi/trunk/rounding_document.cpp
===================================================================
--- lmi/trunk/rounding_document.cpp     2013-01-10 23:52:38 UTC (rev 5658)
+++ lmi/trunk/rounding_document.cpp     2013-01-11 11:13:25 UTC (rev 5659)
@@ -75,14 +75,10 @@
     if(!GetViews().empty())
         {
         RoundingView& view = PredominantView();
-        for
-            (values_type::iterator it = values_.begin()
-            ,end = values_.end()
-            ;it != end
-            ;++it
-            )
+        typedef values_type::const_iterator vtci;
+        for(vtci i = values_.begin(); i != values_.end(); ++i)
             {
-            view.controls()[it->first]->SetValue(*it->second);
+            view.controls()[i->first]->SetValue(*i->second);
             }
         }
 }
@@ -92,14 +88,10 @@
     if(!GetViews().empty())
         {
         RoundingView& view = PredominantView();
-        for
-            (values_type::iterator it = values_.begin()
-            ,end = values_.end()
-            ;it != end
-            ;++it
-            )
+        typedef values_type::const_iterator vtci;
+        for(vtci i = values_.begin(); i != values_.end(); ++i)
             {
-            *it->second = view.controls()[it->first]->GetValue();
+            *i->second = view.controls()[i->first]->GetValue();
             }
         }
     save(rounding_rules_, filename);




reply via email to

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