summaryrefslogtreecommitdiff
path: root/src/main/command_executor_portfolio.cpp
diff options
context:
space:
mode:
authorTim King <taking@google.com>2016-08-31 15:52:41 -0700
committerTim King <taking@google.com>2016-08-31 15:52:41 -0700
commitab8102cd7547887389015f74167ded74f7649b1f (patch)
tree413d226cd9eb17a2d48c06b464384a7b2c262d4b /src/main/command_executor_portfolio.cpp
parent3db673c6cc8140c17ae229da86102955dce72434 (diff)
Removing typeof from command_executor_portfolio.cpp.
Diffstat (limited to 'src/main/command_executor_portfolio.cpp')
-rw-r--r--src/main/command_executor_portfolio.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main/command_executor_portfolio.cpp b/src/main/command_executor_portfolio.cpp
index 1902e1817..bd8b6a9ed 100644
--- a/src/main/command_executor_portfolio.cpp
+++ b/src/main/command_executor_portfolio.cpp
@@ -277,11 +277,13 @@ bool CommandExecutorPortfolio::doCommandSingleton(Command* cmd)
* set of variables mapped.)
*/
if(d_numThreads >= 2) {
- for(typeof(d_vmaps[1]->d_to.begin()) i=d_vmaps[1]->d_to.begin();
- i!=d_vmaps[1]->d_to.end(); ++i) {
- (d_vmaps[0]->d_from)[i->first] = i->first;
+ VarMap& thread_0_from = d_vmaps[0]->d_from;
+ VarMap& thread_1_to = d_vmaps[1]->d_to;
+ for(VarMap::iterator i=thread_1_to.begin();
+ i != thread_1_to.end(); ++i) {
+ thread_0_from[i->first] = i->first;
}
- d_vmaps[0]->d_to = d_vmaps[0]->d_from;
+ d_vmaps[0]->d_to = thread_0_from;
}
lemmaSharingInit();
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback