fw: pass const shared_ptr<pit::Entry>& to Strategy triggers
refs #3205
Change-Id: I8f227c57ee6733526f0569de81f20677210cafa4
diff --git a/daemon/fw/best-route-strategy.hpp b/daemon/fw/best-route-strategy.hpp
index 9480b96..b24f62e 100644
--- a/daemon/fw/best-route-strategy.hpp
+++ b/daemon/fw/best-route-strategy.hpp
@@ -45,15 +45,12 @@
class BestRouteStrategy : public Strategy
{
public:
+ explicit
BestRouteStrategy(Forwarder& forwarder, const Name& name = STRATEGY_NAME);
- virtual
- ~BestRouteStrategy();
-
virtual void
- afterReceiveInterest(const Face& inFace,
- const Interest& interest,
- shared_ptr<pit::Entry> pitEntry) override;
+ afterReceiveInterest(const Face& inFace, const Interest& interest,
+ const shared_ptr<pit::Entry>& pitEntry) override;
public:
static const Name STRATEGY_NAME;