From 264c13abb14cfc5c1f278895369cd2e5a81e014b Mon Sep 17 00:00:00 2001 From: Andrea Bocci Date: Wed, 19 Nov 2014 10:30:23 +0100 Subject: [PATCH] migrate from std::auto_ptr to std::unique_ptr --- EventFilter/FEDInterface/plugins/EvFFEDSelector.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/EventFilter/FEDInterface/plugins/EvFFEDSelector.cc b/EventFilter/FEDInterface/plugins/EvFFEDSelector.cc index f7cbf87c6d3f2..ca7d941729054 100644 --- a/EventFilter/FEDInterface/plugins/EvFFEDSelector.cc +++ b/EventFilter/FEDInterface/plugins/EvFFEDSelector.cc @@ -1,3 +1,5 @@ +#include + #include "EvFFEDSelector.h" namespace evf { @@ -15,13 +17,13 @@ namespace evf { edm::Handle rawdata; event.getByToken(token_, rawdata); - std::auto_ptr fedcoll( new FEDRawDataCollection() ); + std::unique_ptr fedcoll( new FEDRawDataCollection() ); for (unsigned int i : fedlist_) if (rawdata->FEDData(i).size() > 0) fedcoll->FEDData(i) = rawdata->FEDData(i); - event.put(fedcoll); + event.put(std::move(fedcoll)); } } // namespace evf