Skip to content

Commit

Permalink
migrate from std::auto_ptr to std::unique_ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
fwyzard committed Nov 19, 2014
1 parent 52c6ac2 commit 264c13a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions EventFilter/FEDInterface/plugins/EvFFEDSelector.cc
@@ -1,3 +1,5 @@
#include <memory>

#include "EvFFEDSelector.h"

namespace evf {
Expand All @@ -15,13 +17,13 @@ namespace evf {
edm::Handle<FEDRawDataCollection> rawdata;
event.getByToken(token_, rawdata);

std::auto_ptr<FEDRawDataCollection> fedcoll( new FEDRawDataCollection() );
std::unique_ptr<FEDRawDataCollection> 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

0 comments on commit 264c13a

Please sign in to comment.