From 4d7fc018d4e7516279f66d5c511d201a6bfc35cf Mon Sep 17 00:00:00 2001 From: Yunchuan Wen Date: Fri, 9 Dec 2016 13:10:28 +0800 Subject: [PATCH] rgw: use std::make_shared to replace new Signed-off-by: Yunchuan Wen --- src/rgw/rgw_sync_module.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rgw/rgw_sync_module.cc b/src/rgw/rgw_sync_module.cc index 36418e5a28d..29c5a9ff926 100644 --- a/src/rgw/rgw_sync_module.cc +++ b/src/rgw/rgw_sync_module.cc @@ -54,12 +54,12 @@ int RGWCallStatRemoteObjCR::operate() { void rgw_register_sync_modules(RGWSyncModulesManager *modules_manager) { - RGWSyncModuleRef default_module(new RGWDefaultSyncModule()); + RGWSyncModuleRef default_module(std::make_shared()); modules_manager->register_module("rgw", default_module, true); - RGWSyncModuleRef log_module(new RGWLogSyncModule()); + RGWSyncModuleRef log_module(std::make_shared()); modules_manager->register_module("log", log_module); - RGWSyncModuleRef es_module(new RGWElasticSyncModule()); + RGWSyncModuleRef es_module(std::make_shared()); modules_manager->register_module("elasticsearch", es_module); } -- 2.47.3