diff options
author | Neale Ranns <neale.ranns@cisco.com> | 2017-11-27 04:52:35 -0800 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2017-11-27 15:55:40 +0000 |
commit | 1d781558da28f72f5233c09835663aa3b42e2d97 (patch) | |
tree | 9e438be2145157c58e3ee1022788dc6f8dd34fb6 /src/vpp-api/vom/route.cpp | |
parent | 44c9f7e75f5d1a359672b7f94fc0ab34b1f093ca (diff) |
VOM: favour make_shared
Change-Id: I0c5e198049d510f3b3f9a6aefe49c315449768e3
Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Diffstat (limited to 'src/vpp-api/vom/route.cpp')
-rw-r--r-- | src/vpp-api/vom/route.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vpp-api/vom/route.cpp b/src/vpp-api/vom/route.cpp index 0da2ebba749..661d99c4791 100644 --- a/src/vpp-api/vom/route.cpp +++ b/src/vpp-api/vom/route.cpp @@ -360,10 +360,10 @@ ip_route::event_handler::handle_replay() void ip_route::event_handler::handle_populate(const client_db::key_t& key) { - std::shared_ptr<ip_route_cmds::dump_v4_cmd> cmd_v4( - new ip_route_cmds::dump_v4_cmd()); - std::shared_ptr<ip_route_cmds::dump_v6_cmd> cmd_v6( - new ip_route_cmds::dump_v6_cmd()); + std::shared_ptr<ip_route_cmds::dump_v4_cmd> cmd_v4 = + std::make_shared<ip_route_cmds::dump_v4_cmd>(); + std::shared_ptr<ip_route_cmds::dump_v6_cmd> cmd_v6 = + std::make_shared<ip_route_cmds::dump_v6_cmd>(); HW::enqueue(cmd_v4); HW::enqueue(cmd_v6); |