Skip to content

Commit

Permalink
Performance fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderst committed Feb 17, 2017
1 parent f08512b commit 3b0bbdd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/RouteStatus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ int main()
if(opt_lst.isArray())
{
std::cout << "Key = " << KEY << "; Optimization problems are:" << endl;
for(unsigned i = 0; i < opt_lst.size(); i++)
unsigned optListSize = opt_lst.size();
for(unsigned i = 0; i < optListSize ; ++i)
{
string id = opt_lst[i]["optimization_problem_id"].asString();
int state = opt_lst[i]["state"].asInt();
Expand All @@ -42,4 +43,4 @@ int main()
CRoute4Me::cleanup();

return ret;
}
}

0 comments on commit 3b0bbdd

Please sign in to comment.