Skip to content

Commit

Permalink
in and out commods of crctx are sets now
Browse files Browse the repository at this point in the history
  • Loading branch information
rwcarlsen committed Apr 8, 2014
1 parent ff0d6a9 commit 9a6f9aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/batch_reactor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -784,8 +784,8 @@ BatchReactor::GetMatlBids(const cyc::CommodMap<cyc::Material>::type&

std::set<BidPortfolio<Material>::Ptr> ports;

const std::vector<std::string>& commods = crctx_.out_commods();
std::vector<std::string>::const_iterator it;
const std::set<std::string>& commods = crctx_.out_commods();
std::set<std::string>::const_iterator it;
for (it = commods.begin(); it != commods.end(); ++it) {
BidPortfolio<Material>::Ptr port = GetBids_(commod_requests,
*it,
Expand Down Expand Up @@ -902,8 +902,8 @@ BatchReactor::GetOrder_(double size) {

RequestPortfolio<Material>::Ptr port(new RequestPortfolio<Material>());

const std::vector<std::string>& commods = crctx_.in_commods();
std::vector<std::string>::const_iterator it;
const std::set<std::string>& commods = crctx_.in_commods();
std::set<std::string>::const_iterator it;
std::string recipe;
Material::Ptr mat;
for (it = commods.begin(); it != commods.end(); ++it) {
Expand Down

0 comments on commit 9a6f9aa

Please sign in to comment.