table: simplify pit::Entry API
refs #3546
Change-Id: I6a9cb83b9e56ce1d1bb6047049378c51781605af
diff --git a/daemon/fw/strategy.cpp b/daemon/fw/strategy.cpp
index 00fe82f..e0dca89 100644
--- a/daemon/fw/strategy.cpp
+++ b/daemon/fw/strategy.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2014-2015, Regents of the University of California,
+ * Copyright (c) 2014-2016, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -74,8 +74,7 @@
{
// populate downstreams with all downstreams faces
std::unordered_set<const Face*> downstreams;
- const pit::InRecordCollection& inRecords = pitEntry->getInRecords();
- std::transform(inRecords.begin(), inRecords.end(), std::inserter(downstreams, downstreams.end()),
+ std::transform(pitEntry->in_begin(), pitEntry->in_end(), std::inserter(downstreams, downstreams.end()),
[] (const pit::InRecord& inR) { return inR.getFace().get(); });
// delete excluded faces
@@ -88,7 +87,7 @@
for (const Face* downstream : downstreams) {
this->sendNack(pitEntry, *downstream, header);
}
- // warning: don't loop on pitEntry->getInRecords(), because InRecord is erased when sending Nack
+ // warning: don't loop on pitEntry->getInRecords(), because in-record is deleted when sending Nack
}
} // namespace fw