[dasher: 60/217] replaced for each with plain for loop. too new
- From: Patrick Welche <pwelche src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dasher: 60/217] replaced for each with plain for loop. too new
- Date: Sat, 27 Feb 2016 12:05:22 +0000 (UTC)
commit 23a49b9818be7109c1e5554775da25bf3751330c
Author: ipomoena <amajorek google com>
Date: Wed Oct 14 16:34:35 2015 -0700
replaced for each with plain for loop. too new
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 855ad79..055d75a 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 each (auto arg in arguments) {
- key << " " << arg.first << "=" << arg.second;
+ for (auto it = arguments.begin(); it != arguments.end(); ++it) {
+ key << " " << it->first << "=" << it->second;
}
}
if (auto action = m_actions[key.str()])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]