fw: UnsolicitedDataPolicy registry
refs #2181
Change-Id: I39f5dd02a224f9d872bde29f29aab05f64bb6e06
diff --git a/daemon/mgmt/tables-config-section.cpp b/daemon/mgmt/tables-config-section.cpp
index 2773a24..397f26c 100644
--- a/daemon/mgmt/tables-config-section.cpp
+++ b/daemon/mgmt/tables-config-section.cpp
@@ -70,7 +70,7 @@
OptionalNode unsolicitedDataPolicyNode = section.get_child_optional("cs_unsolicited_policy");
if (unsolicitedDataPolicyNode) {
std::string policyKey = unsolicitedDataPolicyNode->get_value<std::string>();
- unsolicitedDataPolicy = fw::makeUnsolicitedDataPolicy(policyKey);
+ unsolicitedDataPolicy = fw::UnsolicitedDataPolicy::create(policyKey);
if (unsolicitedDataPolicy == nullptr) {
BOOST_THROW_EXCEPTION(ConfigFile::Error(
"Unknown cs_unsolicited_policy \"" + policyKey + "\" in \"tables\" section"));