fw: delete deprecated Strategy::getName in favor of getInstanceName
This commit also renames strategy_choice::Entry::getStrategyName
to getStrategyInstanceName.
refs #3868
Change-Id: I40301e744fc236918d6be1c1262eba952198e22f
diff --git a/daemon/mgmt/strategy-choice-manager.cpp b/daemon/mgmt/strategy-choice-manager.cpp
index cff7cef..6ed7826 100644
--- a/daemon/mgmt/strategy-choice-manager.cpp
+++ b/daemon/mgmt/strategy-choice-manager.cpp
@@ -88,9 +88,10 @@
StrategyChoiceManager::listChoices(const Name& topPrefix, const Interest& interest,
ndn::mgmt::StatusDatasetContext& context)
{
- for (auto&& i : m_table) {
+ for (const auto& i : m_table) {
ndn::nfd::StrategyChoice entry;
- entry.setName(i.getPrefix()).setStrategy(i.getStrategyName());
+ entry.setName(i.getPrefix())
+ .setStrategy(i.getStrategyInstanceName());
context.append(entry.wireEncode());
}
context.end();