From 120f8b294148c8a1a30acc92b41507be8d1928fb Mon Sep 17 00:00:00 2001 From: Laurent Forthomme Date: Wed, 17 May 2017 23:03:34 +0200 Subject: [PATCH] Save twice an allocation of shared pointers using the make_shared statement --- .../CTPPSReadoutObjects/plugins/TotemDAQMappingESSourceXML.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CondFormats/CTPPSReadoutObjects/plugins/TotemDAQMappingESSourceXML.cc b/CondFormats/CTPPSReadoutObjects/plugins/TotemDAQMappingESSourceXML.cc index ac0722f088a5d..e8e19f86b3a0a 100644 --- a/CondFormats/CTPPSReadoutObjects/plugins/TotemDAQMappingESSourceXML.cc +++ b/CondFormats/CTPPSReadoutObjects/plugins/TotemDAQMappingESSourceXML.cc @@ -285,8 +285,8 @@ edm::ESProducts< std::shared_ptr, std::shared_ptr mapping(new TotemDAQMapping()); - std::shared_ptr mask(new TotemAnalysisMask()); + auto mapping = std::make_shared(); + auto mask = std::make_shared(); // initialize Xerces try