fw: move STRATEGY_NAME to getStrategyName static function
This avoids potential problems with static initialization order.
refs #3868
Change-Id: I13f0ff6c51c0a3bd43af7993233ff63a4bca9cf9
diff --git a/daemon/fw/asf-strategy.hpp b/daemon/fw/asf-strategy.hpp
index 8975d6b..eb1c65c 100644
--- a/daemon/fw/asf-strategy.hpp
+++ b/daemon/fw/asf-strategy.hpp
@@ -45,7 +45,10 @@
{
public:
explicit
- AsfStrategy(Forwarder& forwarder, const Name& name = STRATEGY_NAME);
+ AsfStrategy(Forwarder& forwarder, const Name& name = getStrategyName());
+
+ static const Name&
+ getStrategyName();
public: // triggers
virtual void
@@ -77,9 +80,6 @@
void
sendNoRouteNack(const Face& inFace, const Interest& interest, const shared_ptr<pit::Entry>& pitEntry);
-public:
- static const Name STRATEGY_NAME;
-
private:
AsfMeasurements m_measurements;
ProbingModule m_probing;