[dasher: 61/217] Revert "replaced for each with plain for loop. too new"



commit e81693fd1f0180832ef8131ac6524fe15ab92a41
Author: ipomoena <amajorek google com>
Date:   Wed Oct 14 17:23:46 2015 -0700

    Revert "replaced for each with plain for loop. too new"
    
    This reverts commit 23a49b9818be7109c1e5554775da25bf3751330c.

 Src/DasherCore/ControlManager.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/Src/DasherCore/ControlManager.cpp b/Src/DasherCore/ControlManager.cpp
index 055d75a..855ad79 100644
--- a/Src/DasherCore/ControlManager.cpp
+++ b/Src/DasherCore/ControlManager.cpp
@@ -375,8 +375,8 @@ CControlBase::Action *CControlManager::parseAction(const XML_Char *name, const X
   // Key in actions map is name plus arguments in alphabetical order.
   key << name;
   if (!arguments.empty()) {
-    for (auto it = arguments.begin(); it != arguments.end(); ++it) {
-      key << " " << it->first << "=" << it->second;
+    for each (auto arg in arguments) {
+      key << " " << arg.first << "=" << arg.second;
     }
   }
   if (auto action = m_actions[key.str()])


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