aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp-api/vom/acl_binding.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vpp-api/vom/acl_binding.cpp')
-rw-r--r--src/vpp-api/vom/acl_binding.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/vpp-api/vom/acl_binding.cpp b/src/vpp-api/vom/acl_binding.cpp
index 267b02a620b..b87cfbaa2e4 100644
--- a/src/vpp-api/vom/acl_binding.cpp
+++ b/src/vpp-api/vom/acl_binding.cpp
@@ -23,10 +23,10 @@ void
l2_binding::event_handler::handle_populate(const client_db::key_t& key)
{
/*
-* dump VPP Bridge domains
-*/
- std::shared_ptr<binding_cmds::l2_dump_cmd> cmd(
- new binding_cmds::l2_dump_cmd());
+ * dump VPP Bridge domains
+ */
+ std::shared_ptr<binding_cmds::l2_dump_cmd> cmd =
+ std::make_shared<binding_cmds::l2_dump_cmd>();
HW::enqueue(cmd);
HW::write();
@@ -50,8 +50,8 @@ template <>
void
l3_binding::event_handler::handle_populate(const client_db::key_t& key)
{
- std::shared_ptr<binding_cmds::l3_dump_cmd> cmd(
- new binding_cmds::l3_dump_cmd());
+ std::shared_ptr<binding_cmds::l3_dump_cmd> cmd =
+ std::make_shared<binding_cmds::l3_dump_cmd>();
HW::enqueue(cmd);
HW::write();