From fb725f7cc3d1f3dff81b94c5cf17fcc097cd8b3c Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 23 Oct 2020 15:40:41 +0800 Subject: [PATCH] mgr: use make_unique<> when appropriate Signed-off-by: Kefu Chai --- src/mgr/DaemonHealthMetricCollector.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mgr/DaemonHealthMetricCollector.cc b/src/mgr/DaemonHealthMetricCollector.cc index ca864dd5899d9..6467fed0497be 100644 --- a/src/mgr/DaemonHealthMetricCollector.cc +++ b/src/mgr/DaemonHealthMetricCollector.cc @@ -90,10 +90,10 @@ DaemonHealthMetricCollector::create(daemon_metric m) { switch (m) { case daemon_metric::SLOW_OPS: - return unique_ptr{new SlowOps}; + return std::make_unique(); case daemon_metric::PENDING_CREATING_PGS: - return unique_ptr{new PendingPGs}; + return std::make_unique(); default: - return unique_ptr{}; + return {}; } } -- 2.39.5