From: Yunchuan Wen Date: Fri, 9 Dec 2016 05:10:28 +0000 (+0800) Subject: rgw: use std::make_shared to replace new X-Git-Tag: v12.0.0~274^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4d7fc018d4e7516279f66d5c511d201a6bfc35cf;p=ceph.git rgw: use std::make_shared to replace new Signed-off-by: Yunchuan Wen --- diff --git a/src/rgw/rgw_sync_module.cc b/src/rgw/rgw_sync_module.cc index 36418e5a28d0..29c5a9ff9268 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); }