From 1d781558da28f72f5233c09835663aa3b42e2d97 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Mon, 27 Nov 2017 04:52:35 -0800 Subject: VOM: favour make_shared Change-Id: I0c5e198049d510f3b3f9a6aefe49c315449768e3 Signed-off-by: Neale Ranns --- src/vpp-api/vom/acl_list.cpp | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'src/vpp-api/vom/acl_list.cpp') diff --git a/src/vpp-api/vom/acl_list.cpp b/src/vpp-api/vom/acl_list.cpp index 0c92c02ad22..97332788f4c 100644 --- a/src/vpp-api/vom/acl_list.cpp +++ b/src/vpp-api/vom/acl_list.cpp @@ -27,9 +27,10 @@ l2_list::event_handler::handle_populate(const client_db::key_t& key) m_evh.order(); /* -* dump VPP Bridge domains -*/ - std::shared_ptr cmd(new list_cmds::l2_dump_cmd()); + * dump VPP Bridge domains + */ + std::shared_ptr cmd = + std::make_shared(); HW::enqueue(cmd); HW::write(); @@ -52,10 +53,10 @@ l2_list::event_handler::handle_populate(const client_db::key_t& key) VOM_LOG(log_level_t::DEBUG) << "dump: " << acl.to_string(); /* -* Write each of the discovered ACLs into the OM, -* but disable the HW Command q whilst we do, so that no -* commands are sent to VPP -*/ + * Write each of the discovered ACLs into the OM, + * but disable the HW Command q whilst we do, so that no + * commands are sent to VPP + */ OM::commit(key, acl); } } @@ -68,9 +69,10 @@ l3_list::event_handler::handle_populate(const client_db::key_t& key) m_evh.order(); /* -* dump VPP Bridge domains -*/ - std::shared_ptr cmd(new list_cmds::l3_dump_cmd()); + * dump L3 ACLs Bridge domains + */ + std::shared_ptr cmd = + std::make_shared(); HW::enqueue(cmd); HW::write(); @@ -95,10 +97,10 @@ l3_list::event_handler::handle_populate(const client_db::key_t& key) VOM_LOG(log_level_t::DEBUG) << "dump: " << acl.to_string(); /* -* Write each of the discovered ACLs into the OM, -* but disable the HW Command q whilst we do, so that no -* commands are sent to VPP -*/ + * Write each of the discovered ACLs into the OM, + * but disable the HW Command q whilst we do, so that no + * commands are sent to VPP + */ OM::commit(key, acl); } } -- cgit 1.2.3-korg