Skip to content

Commit

Permalink
Switch from folly::make_unique
Browse files Browse the repository at this point in the history
Summary: Switch from `folly::make_unique` backport to `std::make_unique`.

Reviewed By: Orvid

Differential Revision: D15797432

fbshipit-source-id: 4248c7f8934baad80969d4c47f5348aca022aca6
  • Loading branch information
yfeldblum authored and facebook-github-bot committed Jun 13, 2019
1 parent 293331b commit 1870021
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openr/platform/NetlinkFibHandler.cpp
Expand Up @@ -235,7 +235,7 @@ NetlinkFibHandler::future_addUnicastRoutes(
promise = std::move(promise),
routes = std::move(routes)]() mutable {
for (auto& route : *routes) {
auto ptr = folly::make_unique<thrift::UnicastRoute>(std::move(route));
auto ptr = std::make_unique<thrift::UnicastRoute>(std::move(route));
try {
// This is going to be synchronous call as we are invoking from
// within event loop
Expand Down Expand Up @@ -264,7 +264,7 @@ NetlinkFibHandler::future_deleteUnicastRoutes(
promise = std::move(promise),
prefixes = std::move(prefixes)]() mutable {
for (auto& prefix : *prefixes) {
auto ptr = folly::make_unique<thrift::IpPrefix>(std::move(prefix));
auto ptr = std::make_unique<thrift::IpPrefix>(std::move(prefix));
try {
future_deleteUnicastRoute(clientId, std::move(ptr)).get();
} catch (std::exception const& e) {
Expand Down Expand Up @@ -321,7 +321,7 @@ NetlinkFibHandler::future_addMplsRoutes(
promise = std::move(promise),
routes = std::move(routes)]() mutable {
for (auto& route : *routes) {
auto ptr = folly::make_unique<thrift::MplsRoute>(std::move(route));
auto ptr = std::make_unique<thrift::MplsRoute>(std::move(route));
try {
// This is going to be synchronous call as we are invoking from
// within event loop
Expand Down

0 comments on commit 1870021

Please sign in to comment.